在线时间18 小时
UID1679091
注册时间2016-11-17
NXP金币0
TA的每日心情 | 难过 2017-2-9 09:58 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]初来乍到
注册会员

- 积分
- 143
- 最后登录
- 2018-6-29
|
本帖最后由 moli666 于 2017-2-24 09:01 编辑
KSDk1.3中库函数 定义很多理解不透。肯请各位大神指教。原谅我C的水平太洼。。。
#define UART_INSTANCE_COUNT (2U)
/** UART - Register Layout Typedef */
typedef struct {
__IO uint8_t BDH; /**< UART Baud Rate Registers: High, offset: 0x0 */
__IO uint8_t BDL; /**< UART Baud Rate Registers: Low, offset: 0x1 */
__IO uint8_t C1; /**< UART Control Register 1, offset: 0x2 */
__IO uint8_t C2; /**< UART Control Register 2, offset: 0x3 */
__I uint8_t S1; /**< UART Status Register 1, offset: 0x4 */
__IO uint8_t S2; /**< UART Status Register 2, offset: 0x5 */
__IO uint8_t C3; /**< UART Control Register 3, offset: 0x6 */
__IO uint8_t D; /**< UART Data Register, offset: 0x7 */
__IO uint8_t MA1; /**< UART Match Address Registers 1, offset: 0x8 */
__IO uint8_t MA2; /**< UART Match Address Registers 2, offset: 0x9 */
__IO uint8_t C4; /**< UART Control Register 4, offset: 0xA */
__IO uint8_t C5; /**< UART Control Register 5, offset: 0xB */
__I uint8_t ED; /**< UART Extended Data Register, offset: 0xC */
} UART_Type, *UART_MemMapPtr;
/*! @brief Table of base addresses for UART instances. */
extern UART_Type * const g_uartBase[UART_INSTANCE_COUNT];
UART_Type * base = g_uartBase[instance];
请问这个基地址表(Table of base addresses )是怎么回事??在哪里能看?
|
|