78 #include <stm32f4xx.h>
83 #define CARME_ERROR_RTC CARME_ERROR_RTC_BASE + 0
85 #ifndef CARME_RTC_USE_WAKEUP_ISR
86 #define CARME_RTC_USE_WAKEUP_ISR 0
103 #if CARME_RTC_USE_WAKEUP_ISR==1
107 typedef enum _CARME_RTC_WAKEUP_t {
108 CARME_RTC_WAKEUP_STOP =0,
109 CARME_RTC_WAKEUP_30s,
110 CARME_RTC_WAKEUP_10s,
113 CARME_RTC_WAKEUP_500ms,
114 CARME_RTC_WAKEUP_250ms,
115 CARME_RTC_WAKEUP_125ms
116 } CARME_RTC_WAKEUP_t;
uint8_t ERROR_CODES
Error variable.
void CARME_RTC_GetTime(CARME_RTC_TIME_t *time)
Get the date and time from the internal rtc.
void CARME_RTC_Init(void)
Initialize and start the internal RTC of the STM32F4xx. The date and time is set from the external R...
uint32_t get_fattime(void)
Get the time from the RTC. This function is used from the FatFs and the function prototype is given ...
ERROR_CODES CARME_RTC_SetTime(CARME_RTC_TIME_t *time)
Set the internal rtc date and time.
struct _CARME_RTC_TIME_t CARME_RTC_TIME_t
Structure to store a full date and time.
Structure to store a full date and time.