utils.h

来自「smdk2416 wince source code/BSP」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef __UTILS_H__
#define __UTILS_H__

#define LED_ON		0xa
#define LED_OFF		0x0

#ifdef __cplusplus
	extern "C" {
#endif

void Port_Init(void);
void Led_Display(int data);
void Delay(void);

void Uart_Init(void);
void Uart_SendByte(int data);
void Uart_SendString(char *pt);
void Uart_SendDWORD(DWORD d, BOOL cr);
void Uart_SendBYTE(BYTE d, BOOL cr);

char *hex2char(unsigned int val);

#ifdef __cplusplus
}
#endif

#endif // __UTILS_H__

⌨️ 快捷键说明

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