TI中文支持网
TI专业的中文技术问题搜集分享网站

CC2640,关于串口的设置

typedef struct
{
bool configured;
uint8 baudRate;
bool flowControl;
uint16 flowControlThreshold;
uint8 idleTimeout;
halUARTBufControl_t rx;
halUARTBufControl_t tx;
bool intEnable;
uint32 rxChRvdTime;
halUARTCBack_t callBackFunc;
}halUARTCfg_t;   这个结构体里没有加入停止位和奇偶校验位,应该怎么加入?

extern void HalUARTInit ( void );extern uint8 HalUARTOpen ( uint8 port, halUARTCfg_t *config );这些原型函数在哪里?

Yue TANG:

这些是以前8051核系列的接口,不用于cc2640.

怎么使用可以参看老的BLE协议栈1.4.3

2640的如下:

http://processors.wiki.ti.com/index.php/CC2640_Serial_Communication

zha zhao:

回复 Yue TANG:

这是用NPI的,有用当普通串口使用的例子吗?普通串口的接收中断怎么写?

赞(0)
未经允许不得转载:TI中文支持网 » CC2640,关于串口的设置
分享到: 更多 (0)