waterloo-rocketry / cansw_processor_stm

1 stars 0 forks source link

Use user-defined callback for USART 1 Rx #43

Open Joe-Joe-Joe-Joe opened 4 days ago

Joe-Joe-Joe-Joe commented 4 days 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>)