waterloo-rocketry / cansw_processor_airbrakes

Processor board was developed for the 2023-2024 design cycle to perform state estimation and control tasks for Borealis's airbrakes system
2 stars 0 forks source link

Use user-defined callback for USART 1 Rx #43

Closed Joe-Joe-Joe-Joe closed 3 months ago

Joe-Joe-Joe-Joe commented 3 months ago

Currently we rebind the global handler for ALL UART (extended) Rx events, HAL_UARTEx_RxEventCallback. This should be changed to bind a user-defined function: HAL_UART_RegisterCallback(&huart1, HAL_UART_RX_COMPLETE_CB_ID, <function pointer goes here>)