debug.h

来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C头文件 代码 · 共 74 行

H
74
字号
/**************************************************************************
*	HEADER_NAME :		debug.h
*	DESCRIPTION :		Has the register descriptions for the regs that
*						are used by the Debug Serial Port.  In the D9000
*						code, this data was kept in p2.h.  It is too cumversome,
*						for that file and is very specific to this module, if 
*						these fields change, so does the code, so I have created this
*						H file that will accompany the code all the time.
*	HISTORY :			
*			Created			7/2/97	Damon Fleury
*
*   Copyright (c) 1998 Hitachi,Ltd.
*****************************************************************************/

/* serialCsrA's fields: */
#define SERA_RX_CHARACTER_INTR   0x8000
#define SERA_RX_INTR             0x4000
#define SERA_RX_END_INTR         0x2000
#define SERA_RX_FRAME_ERROR_INTR 0x1000
#define SERA_RX_CHANGED_INTR     0x0400
#define SERA_RX_OVERRUN_INTR     0x0200
#define SERA_RI                  0x0080
#define SERA_DSR                 0x0040
#define SERA_TX_FULL             0x0020
#define SERA_TX_INTR             0x0010
#define SERA_TX_END_INTR         0x0008
#define SERA_CTS                 0x0004
#define SERA_CD                  0x0002
#define SERA_SERIAL_ON           0x0001


#define SERA_INTR_MASK			(SERA_RX_CHARACTER_INTR | SERA_RX_INTR | \
								SERA_RX_END_INTR | SERA_RX_FRAME_ERROR_INTR | \
								SERA_RX_CHANGED_INTR | SERA_RX_OVERRUN_INTR | \
								SERA_TX_INTR | SERA_TX_END_INTR)

/* serialCsrB's fields: */
#define SERB_SERIAL_POWER       0x8000
#define SERB_RX_EN              0x4000
#define SERB_TX_EN              0x2000
#define SERB_TX_STOP_AT_PAGE    0x1000
#define SERB_CTS_FLOW           0x0800
#define SERB_NOT_SERIAL_RESET   0x0400
#define SERB_RTS                0x0200
#define SERB_DTR                0x0100
#define SERB_BREAK              0x0080
#define SERB_STOP_BITS          0x0040
#define SERB_BIT_FORMAT_MASK    0x0030
#define SERB_BAUD_RATE_MASK     0x000f

/* The following values are stored in SERB_BAUD_RATE_MASK */

/*
#define SER_BAUD_9600_15MHZ			11 
#define SER_BAUD_14400_15MHZ		7 
#define SER_BAUD_19200_15MHZ		5 
#define SER_BAUD_38400_15MHZ		2 
#define SER_BAUD_57600_15MHZ		1
#define SER_BAUD_115200_15MHZ		0

#define SER_BAUD_9600_20MHZ			15 
#define SER_BAUD_19200_20MHZ		7 
#define SER_BAUD_38400_20MHZ		3 
*/

#define SER_BAUD_9600		15 
#define SER_BAUD_19200		7 
#define SER_BAUD_38400		3 

/* The following values are stored in SERB_BIT_FORMAT_MASK. */
#define SER_BIT_FORMAT_6		0x20
#define SER_BIT_FORMAT_7		0x10
#define SER_BIT_FORMAT_8		0x00

⌨️ 快捷键说明

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