support stm8
1. see: TencentOS-tiny\board\STM8L052R8T6\IAR\hello_world 2. compile/debug/run with IAR for STM8
This commit is contained in:
20
board/STM8L052R8T6/BSP/include/rtc.h
Normal file
20
board/STM8L052R8T6/BSP/include/rtc.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#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
|
||||
|
Reference in New Issue
Block a user