Closed stenbergd closed 8 years ago
This feature can be tested with a FTDI TTL RS232 cable with Putty or Termite.
Closing this issue now. UART works as intended, but it remains to define in a protocol towards FMS in more certain terms than just relying on the CLI.
Use USART2_TX and USART2_RX on pins PA02 and PA03 (extension adapter board pins) to provide comms interface with Linux board.
The UART should be run in either interrupt mode or DMA mode (but will likely only read one byte at a time anyway since we do not know how much data we may receive. But writing data can be performed with more...)
Use FIFO to read/write similar to USB.
Generalise USB comms and CLI functionality so that the CLI is exposed over UART as well. Perhaps send function pointer (or list of) to continuous printing functions? Will need to mutex the CLI parser for USB and UART RX threads.