We open the following project in Keil:
The function HAL_UART_Transmit_IT has three parameters:
UART_HandleTypeDef *huart, to let the function know which serial port is being handled
uint8_t *pData, the starting address of the data to be sent
Step 3: Enable interrupts (an interrupt will occur when the serial port sending register is empty).
3. The Process of Interrupt Generation and Execution
References:
STM32F030 Reference Manual
Leave a Comment
Your email address will not be published. Required fields are marked *