Replies: 2 comments 8 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
So how do I call something like HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size), In response to a serial port interruption? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I saw the wiki's Core Callback about the API, which required me to create a build opt in the same folder as the ino file. I followed h's file. As the picture shows:
But I have a problem when I call the HAL library to interrupt the serial module:
HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
Wiki tells me to write:
void registerCoreCallback(void (*func)(void))
How do I write the function "HAL_UART_Receive_IT" in the HAL module as "void registerCoreCallback(void (*func)(void)") as required in the Wikipedia
Beta Was this translation helpful? Give feedback.
All reactions