|
RTEMS
5.1
|
14 #ifndef __RTC_DS1307__ 15 #define __RTC_DS1307__ 17 #define DS1307_I2C_ADDRESS (0xD0) 19 #define DS1307_SECOND (0x00) 20 #define DS1307_SECOND_HALT (0x80) 21 #define DS1307_MINUTE (0x01) 22 #define DS1307_HOUR (0x02) 23 #define DS1307_HOUR_12 (0x40) 24 #define DS1307_HOUR_PM (0x20) 25 #define DS1307_DAY_OF_WEEK (0x03) 26 #define DS1307_DAY (0x04) 27 #define DS1307_MONTH (0x05) 28 #define DS1307_YEAR (0x06) 29 #define DS1307_CONTROL (0x07) 30 #define DS1307_CONTROL_OUT (0x80) 31 #define DS1307_CONTROL_SQWE (0x10) 32 #define DS1307_CONTROL_RS_1 (0x00) 33 #define DS1307_CONTROL_RS_4096 (0x01) 34 #define DS1307_CONTROL_RS_8192 (0x02) 35 #define DS1307_CONTROL_RS_32768 (0x03) 37 #define DS1307_NVRAM_START (0x08) 38 #define DS1307_NVRAM_END (0x3F) 39 #define DS1307_NVRAM_SIZE (56)