Hack-a-Day / 2018-Supercon-Badge

Retrocomputing badge for the 2018 Hackaday Superconference
https://hackaday.io/project/161859-2018-hackaday-superconference-badge
MIT License
27 stars 8 forks source link

Changed terminal code to work bidirectional and added it to the menu #25

Open jacgoudsmit opened 6 years ago

jacgoudsmit commented 6 years ago

I added the terminal module back to the project (I had to rename the two functions so they wouldn't clash with the user_program_init and user_program_loop functions in the empty sample module).

Then I added code to flush the serial port at initialization time and pump bytes back and forth between (1) keyboard and UART transmitter and (2) UART receiver and "stdio" output to the screen.

I added the terminal program to the main menu as option 7 and pushed the "user program" option to number 8.

This really is a minor change, the relevant changes in the terminal loop and the change to the main menu are probably less than 20 lines. The reason why it looks so daunting is that the list of source files and object files got changed, which causes big daunting-looking diffs. It should be trivial to merge this.