Bouffalo SDK  1.0
Bouffalolab Software Development Kit
bflb_rtc.h File Reference
#include "bflb_core.h"
Include dependency graph for bflb_rtc.h:

Go to the source code of this file.

Macros

#define BFLB_RTC_SEC2TIME(s)   (s * 32768)
 
#define BFLB_RTC_TIME2SEC(time)   (time / 32768)
 

Functions

void bflb_rtc_disable (struct bflb_device_s *dev)
 clear and disable rtc. More...
 
void bflb_rtc_set_time (struct bflb_device_s *dev, uint64_t time)
 Set rtc alarming time. More...
 
uint64_t bflb_rtc_get_time (struct bflb_device_s *dev)
 Get rtc current time. More...