📄 sysdefs.h
字号:
#ifndef _INC_SYSDEFS_H#define _INC_SYSDEFS_H#include <config.h>#include <stdc.h>#include <time.h>#include <devices.h>#define LINK_BAUD (115200) // these keep track of what VIC Vectors are to what.#define ADC0VectCntl VICVectCntl0#define ADC0VectAddr VICVectAddr0#define Uart0VectCntl VICVectCntl1#define Uart0VectAddr VICVectAddr1#define Uart1VectCntl VICVectCntl2#define Uart1VectAddr VICVectAddr2#define Timer0VectCntl VICVectCntl3#define Timer0VectAddr VICVectAddr3#define DEVICE_MMC 1#define MaxDeviceDescriptors 2 // this is always max device type + 1extern const DEVICE_TABLE_ARRAY device_table_list [MaxDeviceDescriptors];typedef enum {TimerInMilli, TimerInSeconds} timertype;struct TIMER { time_t SetTime; /* when it was set. */ time_t HowLong; /* how long it is to run. */ timertype Type; /* TimerIn10ms or TimerInSeconds. */ };void readRTC (struct tm *nowtime);void writeRTC (struct tm *newTime);void setElapsed (int HowLong, struct TIMER * timer, timertype TimerType);bool timeElapsed (struct TIMER * timer);void systemInit(void);void setupFACP (void);void scanFACP (void);void ServiceBlinker (void);void facpCallBack (void);#endif // _INC_SYSDEFS_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -