Source code for the Trusted Boot Module.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
tbm-mcu/include/rtc.h

12 lines
221 B

#pragma once
#include <time.h>
#define SECS_PER_DAY (24 * 60 * 60)
int rtc_init(struct tm *time);
int rtc_get_time(struct tm *time);
time_t rtc_time(void);
int alarm_enable(uint32_t timeout);
int alarm_disable(void);