o add ff lib
o add ff lib samples o add ff linux sample
This commit is contained in:
15
tools/ffsample/lpc2k/rtc.h
Normal file
15
tools/ffsample/lpc2k/rtc.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "integer.h"
|
||||
|
||||
typedef struct {
|
||||
WORD year; /* 1..4095 */
|
||||
BYTE month; /* 1..12 */
|
||||
BYTE mday; /* 1.. 31 */
|
||||
BYTE wday; /* 1..7 */
|
||||
BYTE hour; /* 0..23 */
|
||||
BYTE min; /* 0..59 */
|
||||
BYTE sec; /* 0..59 */
|
||||
} RTC;
|
||||
|
||||
BOOL rtc_gettime (RTC*); /* Get time */
|
||||
BOOL rtc_settime (const RTC*); /* Set time */
|
||||
|
||||
Reference in New Issue
Block a user