在线时间23 小时
UID58398
ST金币232
蝴蝶豆0
注册时间2008-4-9
该用户从未签到
中级会员
- 最后登录
- 2019-4-30
|
楼主 |
发表于 2017-4-10 13:46:33
|
显示全部楼层
本帖最后由 benlarden 于 2017-4-10 14:02 编辑
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
/* NOTE: This function should not be modified, when the callback is needed,
the HAL_UART_RxCpltCallback can be implemented in the user file
*/
if(huart->Instance == USART3){
......//recv process
cRxBuffPtr[0] = 0;
if(HAL_UART_Receive_IT(huart,cRxBuffPtr[0],1) != HAL_OK){
HAL_UART_Transmit(&huart5, (uint8_t *)"uart3 err\r\n", 11, 0xff);
}
}
} |
|