CC2540 用uart1 alt1(p0.4,p0.5)模式下,能收到数据,但是发不出数据?
时间:10-02
整理:3721RD
点击:
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
找到原因,是低功耗的问题
已找到原因,是低功耗引起的问题。
请问您最后是怎么设置的?