stm32f0: rtc: set up the real-time clock and implement functions to get and set the time

This commit is contained in:
S.J.R. van Schaik 2017-07-26 11:30:04 +02:00
parent c071903dd1
commit 333706ccb9
3 changed files with 154 additions and 0 deletions

7
include/rtc.h Normal file
View file

@ -0,0 +1,7 @@
#pragma once
#include <time.h>
int rtc_init(struct tm *time);
int rtc_get_time(struct tm *time);
time_t rtc_time(void);