1 /** 2 * @brief Rx Transfer completed callback 3 * @param UartHandle: UART handle 4 * @note This example shows a simple way to report end of IT Rx transfer, and 5 * you can add your own implementation. 6 * @retval None 7 */ 8 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *hsart) 9 {10 uint8_t c ='a';11 /* Set transmission flag: trasfer complete*/12 UartReady= SET;13 // HAL_USART_Transmit_IT(husart, &c, 1);14 /* Turn LED4 on: Transfer in reception process is correct */15 HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_2);16 }
联系客服