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

CC2540 用uart1 alt1(p0.4,p0.5)模式下,能收到数据,但是发不出数据?

CC2540的HAL_UART_DMA=1,2只能分别用在uart0 alt1,和uart1 alt2上?

uint16 HalUARTWrite(uint8 port, uint8 *buf, uint16 len)
{
#if (HAL_UART_DMA == 1)
if (port == HAL_UART_PORT_0) return HalUARTWriteDMA(buf, len);
#endif
#if (HAL_UART_DMA == 2)
if (port == HAL_UART_PORT_1) return HalUARTWriteDMA(buf, len);
#endif
#if (HAL_UART_ISR == 1)
if (port == HAL_UART_PORT_0) return HalUARTWriteISR(buf, len);
#endif
#if (HAL_UART_ISR == 2)
if (port == HAL_UART_PORT_1) return HalUARTWriteISR(buf, len);
#endif
#if (HAL_UART_SPI == 1)
if (port == HAL_UART_PORT_0) return HalUARTWriteSPI(buf, len);
#endif
#if (HAL_UART_SPI == 2)
if (port == HAL_UART_PORT_1) return HalUARTWriteSPI(buf, len);
#endif

user4198369:

找到原因,是低功耗的问题

Chen Qian:

回复 user4198369:

请问您最后是怎么设置的?

赞(0)
未经允许不得转载:TI中文支持网 » CC2540 用uart1 alt1(p0.4,p0.5)模式下,能收到数据,但是发不出数据?
分享到: 更多 (0)