blob: b01ea7ca28fbbd7ee9df42f0bab3a556220b52b6 [file] [log] [blame]
#ifndef _STM32F4XX_RTC_H_
#define _STM32F4XX_RTC_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <inc/seos.h>
enum RtcClock
{
RTC_CLK_LSI,
RTC_CLK_LSE,
RTC_CLK_LSE_BYPASS,
};
#define RTC_ERR_TOO_BIG -1
#define RTC_ERR_TOO_SMALL -2
#define RTC_ERR_INTERNAL -3
#define RTC_ERR_ACCURACY_UNMET -4
void rtcInit(void);
int rtcSetWakeupTimer(uint64_t delay);
uint64_t rtcGetTime(void);
#ifdef __cplusplus
}
#endif
#endif