Bouffalo SDK
1.0
Bouffalolab Software Development Kit
bflb_rtc.h
Go to the documentation of this file.
1
#ifndef _BFLB_RTC_H
2
#define _BFLB_RTC_H
3
4
#include "
bflb_core.h
"
5
14
#define BFLB_RTC_SEC2TIME(s) (s * 32768)
15
#define BFLB_RTC_TIME2SEC(time) (time / 32768)
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
26
void
bflb_rtc_disable
(
struct
bflb_device_s
*dev);
27
34
void
bflb_rtc_set_time
(
struct
bflb_device_s
*dev, uint64_t time);
35
42
uint64_t
bflb_rtc_get_time
(
struct
bflb_device_s
*dev);
43
44
#ifdef __cplusplus
45
}
46
#endif
47
56
#endif
bflb_rtc_disable
void bflb_rtc_disable(struct bflb_device_s *dev)
clear and disable rtc.
bflb_device_s
Definition:
bflb_core.h:93
bflb_rtc_set_time
void bflb_rtc_set_time(struct bflb_device_s *dev, uint64_t time)
Set rtc alarming time.
bflb_core.h
bflb_rtc_get_time
uint64_t bflb_rtc_get_time(struct bflb_device_s *dev)
Get rtc current time.
drivers
lhal
include
bflb_rtc.h
Generated by
1.8.13