📄 syscon.h
字号:
#ifndef __SYSCON_H__
#define __SYSCON_H__
#ifdef __cplusplus
extern "C"{
#endif
#define DBGMSG
#undef DBGMSG
#define LOWLEVEL 0
#define HIGHLEVEL 1
#define FALLINGEDGE 2
#define RISINGEDGE 4
#define BOTHEDGE 6
#define FILTERENABLE 1
#define FILTERDISABLE 0
#define BATINT 1
#define BATIGNORE 2
#define BATESLEEP 3
#define EINTNUM0 0
#define EINTNUM1 1
#define EINTNUM2 2
#define EINTNUM3 3
#define EINTNUM4 4
#define EINTNUM5 5
#define EINTNUM6 6
#define EINTNUM7 7
#define EINTNUM8 8
#define EINTNUM9 9
#define EINTNUM10 10
#define EINTNUM11 11
#define EINTNUM12 12
#define EINTNUM13 13
#define EINTNUM14 14
#define EINTNUM15 15
#define TESTYEAR (0x00)
#define TESTMONTH (0x12)
#define TESTDATE (0x31)
#define TESTDAY (0x06) // SUN:1 MON:2 TUE:3 WED:4 THU:5 FRI:6 SAT:7
#define TESTHOUR (0x23)
#define TESTMIN (0x59)
#define TESTSEC (0x59)
#define TESTYEAR2 (0x01)
#define TESTMONTH2 (0x01)
#define TESTDATE2 (0x01)
#define TESTDAY2 (0x07) // SUN:1 MON:2 TUE:3 WED:4 THU:5 FRI:6 SAT:7
#define TESTHOUR2 (0x00)
#define TESTMIN2 (0x00)
#define TESTSEC2 (0x00)
// Main routine
void Ch6_Syscon(void);
void __irq Eint0Wakeup(void);
void __irq Eint1Wakeup(void);
void __irq Eint2Wakeup(void);
void __irq Eint3Wakeup(void);
void __irq Eint4_7Wakeup(void);
void __irq Eint8_23Wakeup(void);
void __irq AlarmWakeup(void);
void __irq TickWakeup(void);
void __irq BatteryFaultEvent(void);
void SetAlarmWakeUp(void);
void SetTimeTickWakeup(U32 TICsel, U32 TCnt);
void SetEintWakeup(U32 EintNumber, U32 SignalMethod, U32 Filter);
void SetBatteryFaultEvent(U32 BatConfig);
#ifdef __cplusplus
}
#endif
#endif /*__SYSCON_H__*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -