📄 csp.h
字号:
/**---------------------Copyright (c)-----------------------------------------------------***
*** Author:Yan Zhangjian ***
*** jenkinyan@163.com ***
*** ***
***---------------------File Info---------------------------------------------------------***
*** 创 建 人: 颜章健 ***
*** 创建日期: 2008-03-02 ***
*** 创建版本: V1.0.0 ***
*** 文件描述: 片上外设支持包 ***
***---------------------------------------------------------------------------------------***
*** 修 订 人: ***
*** 修订日期: ***
*** 修订版本: ***
*** 修订描述 ***
***---------------------------------------------------------------------------------------**/
#ifndef __csp_h
#define __csp_h
#define DEBUG_ENABLE 1
#define KEY_NONE 0x00
#define KEY_UP 0xfd // 上键
#define KEY_DOWN 0xfa // 下键
#define KEY_LEFT 0xf9 // 左键
#define KEY_RIGHT 0xfc // 右键
#define KEY_CANCEL 0xfb // 退出键
#define KEY_ENTER 0xfe // 确定键
uint8 GetKey(uint32 delay);
#define KeyInit() IO1DIR &= (~KEY_BUS)
void WaitKeyPop(void);
#define LedInit() IO0DIR |= LED
#define LedOn() IO0CLR = LED
#define LedOff() IO0SET = LED
void Uart0Init (uint32 baud);
//char Uart0GetChar (void);
//void Uart0GetStr (char *s, uint32 len);
uint8 Uart0GetChar(char *dat);
uint32 Uart0GetStr(char *buf, uint32 buf_len);
void Uart0PutChar (char dat);
uint8 Uart0RecvNew(void);
uint8 MemCmp(uint8 *m1,uint8 *m2, uint32 len);
void Uart0PutStr (char *s);
int Printf(const char *fmt,...);
#endif
/********************************************************************************************
*** 文件结束 ***
********************************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -