stm32f0: rtc: set up the real-time clock and implement functions to get and set the time
This commit is contained in:
parent
c071903dd1
commit
333706ccb9
3 changed files with 154 additions and 0 deletions
7
include/rtc.h
Normal file
7
include/rtc.h
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue