sysdefs.h
来自「FAT16 Filesystem on Philips LPC2000 seri」· C头文件 代码 · 共 47 行
H
47 行
#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 + =
减小字号Ctrl + -
显示快捷键?