79 #include <stm32f4xx.h>               
   83 #define CARME_RTC_REG_SEC   0x00     
   84 #define CARME_RTC_REG_MIN   0x01     
   85 #define CARME_RTC_REG_HOUR  0x02     
   86 #define CARME_RTC_REG_WDAY  0x03     
   87 #define CARME_RTC_REG_DAY   0x04     
   88 #define CARME_RTC_REG_MONTH 0x05     
   89 #define CARME_RTC_REG_YEAR  0x06     
   90 #define CARME_RTC_REG_CTRL  0x07     
   92 #define CARME_RTC_I2C_ADDR  0xD0     
RTC interface.  Communication interface to use the RTC from the CARME-M4. 
void CARME_RTC_Ext_GetTime(CARME_RTC_TIME_t *time)
Get the Time from the external RTC on mainboard. 
void CARME_RTC_Ext_SetTime(CARME_RTC_TIME_t *time)
Set the Time of the external RTC on the mainboard. 
Structure to store a full date and time. 
void CARME_RTC_Ext_Init(void)
Initialize the RTC on the CARME mainboard.