I connected the RTC DS1307 circuit on the SDA and SCL of the GPIO (MINI2440), and I can see using the I2CTools that its in the I2C bus with the address (0x68). But how can I show the date and time? How to use the driver rtc-ds1307.c? Thanks
DS1307 - I2C
Think that you will need to find out how to set the time first and then to read it. You need to find a something that tells you what functions are available. Look at the include files, ie <linux/rtc.h> and towards the bottom you will find: extern int rtc_set_time(struct ...); Then try to find some documentation. Throw <rtc-ds1307.c> into Google and read through some of what that throws up. Good luck.