本帖最后由 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 errrn", 11, 0xff);
}
}
}
本帖最后由 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 errrn", 11, 0xff);
}
}
}
举报