Core
Loading...
Searching...
No Matches
src
driver
Inc
rtc.h
1
#include <stdbool.h>
2
#include <stdint.h>
3
#include <time.h>
4
5
#define CORE_RTC_FORMAT_BIN 0
6
#define CORE_RTC_FORMAT_BCD 1
7
8
typedef
struct
core_RTC_tm
{
9
uint32_t tm_usec;
10
uint8_t tm_sec;
11
uint8_t tm_min;
12
uint8_t tm_hour;
13
uint8_t tm_mday;
14
uint8_t tm_mon;
15
uint16_t tm_year;
16
uint8_t tm_yday;
17
uint8_t tm_format;
18
}
core_RTC_tm_t
;
19
20
bool
core_RTC_init();
21
void
core_RTC_get_time(
struct
tm *tm);
22
void
core_RTC_set_time(
struct
tm *tm);
23
uint32_t core_RTC_get_usec();
24
core_RTC_tm
Definition
rtc.h:8
Generated by
1.11.0