gneidermeier / stm8_mcp

Open-source brushless motor control firmware on STM8s microcontrollers.
Apache License 2.0
6 stars 5 forks source link

Rx queue for serial UART communication #15

Open gneidermeier opened 3 years ago

gneidermeier commented 3 years ago

There is presently no provision for the stm8 to receive any serial communication beyond what is being done for simple key stroke handlers i.e. SerialKeyPressed(). In order to receive data reliably over the UART, there needs to be an ISR for the serial UART receiver.

gneidermeier commented 3 years ago

Will need to conditionally compile enabling the RX interrupt, otherwise SerialKeyPressed() doesn't work and there is no way to start the motor or any other input from the terminal. This will have to be the case until the interrupt driven RX has enough in place to provide the present level of UI input functionality.