编程规范
串口
重要函数
HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t >Timeout);
HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size);
HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart);
1.简单发送
HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
2.串口接收
重写串口接收回调函数
HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
......