连续签到天数:4天 | 签到总天数:109天 | 签到总奖励:1690金币 |
|
楼主 |
发表于 2016-1-14 17:42:29
|
显示全部楼层
void uartInit(void)
{
/* Initialise host interface driver */
UartInit(uartDataInFn,
0, /* uart_data_out_fn */
uartRxBuffer, UART_BUF_SIZE_BYTES_64,
uartTxBuffer, UART_BUF_SIZE_BYTES_64,
uart_data_unpacked);
UartConfig(0x01d9, 0); /*UART_RATE_9K6 = 0x0028;UART_RATE_115K2 = 0x01d9*/
UartEnable(TRUE);
uart_receive.rec_len = 0;
/* Request notification from the UART when enough data arrives
* to form a message header.
*/
UartRead(MESSAGE_HEADER_LENGTH_BYTES, 0);
SleepModeChange(sleep_mode_never);
}
在uartInit中添加SleepModeChange(sleep_mode_never);问题解决,不知为什么
|
|