/* Driver for the STM32L151 RTC, only time + day of week */ #pragma once #include #include typedef struct { uint8_t hour; uint8_t minute; uint8_t second; uint8_t day_of_week; /* 1 = Monday */ } time_t; void set_rtc(const time_t *time); // Returns false if RTC has not been set. bool get_rtc(time_t *time);