📄 sc16c.h
字号:
#ifndef _SC16C_H_
#define _SC16C_H_
/* Notice: 移植到不同平台时,修改此处的BANK区的值.当前为LPC2400平台上地址配置 */
#define CSA 0x80000080 /* SC16C2550 通道A基地址 */
#define CSB 0x80000090 /* SC16C2550 通道B基地址 */
#define SC_THR 0x00
#define SC_RHR 0x00
#define SC_IER 0x01
#define SC_FCR 0x02
#define SC_ISR 0x02
#define SC_LCR 0x03
#define SC_MCR 0x04
#define SC_LSR 0x05
#define SC_MSR 0x06
#define SC_SPR 0x07
#define SC_DLL 0x00
#define SC_DLM 0x01
#define SC_EFR 0x02
/******************************************************************************************
** 初始化SC16C652
******************************************************************************************/
void InitSC16C(void);
void SC16C_Write(uint32 addr, uint8 dat);
uint8 SC16C_Read(uint32 addr);
#endif //_SC16C_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -