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:
请问您最后是怎么设置的?