Dartmouth-Formula-Racing / DFR_CVC_2019

Dartmouth Formula Racing Central Vehicle Controller Codebase
10 stars 5 forks source link

Create print function that accepts format specifiers #2

Open leina05 opened 5 years ago

leina05 commented 5 years ago

Current print function (console_write) implemented in uart module does not accept format specifiers. Modify so that it does/create new print function that does. Once complete, can set as FF_PRINTF function in FreeRTOS+FAT config file.

leina05 commented 5 years ago

Jank solution: use sprintf + printf, but printf IS BLOCKING. Added USE_PRINTF constant in cvc_serial.h to toggle between using printf (blocking) and console_write (non-blocking). This is implemented in SD_driver_validation branch as of now. Need to clean this up moving forward, but not a priority at the moment.