Files
TencentOS-tiny/board/STM8L052R8T6/BSP/include/rtc.h
daishengdong 405e5d970a support stm8
1. see: TencentOS-tiny\board\STM8L052R8T6\IAR\hello_world
2. compile/debug/run with IAR for STM8
2020-02-15 16:39:00 +08:00

21 lines
272 B
C

#ifndef __RTC_H_
#define __RTC_H_
typedef struct
{
uint8_t cSecond;
uint8_t cMinute;
uint8_t cHour;
uint8_t cWeek;
uint8_t cDay;
uint8_t cMonth;
uint8_t cYear;
} StruCLOCK;
extern StruCLOCK clock;
void RTC_Setting_Init(void);
void RTC_Get_Time(void);
#endif