common.h

来自「本代码包含已经移植好的UCGUI代码,控制器是S3C44B0,通过UCGUI,在」· C头文件 代码 · 共 38 行

H
38
字号
#ifndef _COMMON_H_
#define _COMMON_H_

#define MAX_LINE_LEN 32

typedef unsigned char uint8;
typedef unsigned char uchar;
typedef unsigned int  uint;
typedef unsigned long ulong;
typedef unsigned short uint16;

#define U32 unsigned int
#define U16 unsigned short
#define S32 int
#define S16 short int
#define U8 unsigned char

#define TRUE   1
#define FALSE  0

#define UART   0

extern void FlashNonCache(int);
extern void BoardInit (void);
extern char GetChar(uint8 ch);
extern char GetKey(uint8 ch);
extern void PutChar(uint8 ch,uint8 data);
extern void LedOut(uint8 ch, uint8 flag);
extern void PutStr(uint8 ch, char *pt);
extern void OutPut(uint8 ch, char *fmt,...);
extern void Output(char *fmt,...);
extern void Delay(int time);

#define  Putstr(x)     PutStr(UART,x)
#define  Putchar(x)    PutChar(UART,x)
#define  Getchar(x)    GetChar(UART)

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?