[CLOSED] Implement an initial Firmware Main Loop
Created by: jwoolston
Issue by jwoolston from Thursday Mar 07, 2013 at 16:18 GMT Originally opened as https://github.com/Tenkiv/TekDAQC_Firmware_Old/issues/5
As we discussed, the initial idea for the main loop is:
- Measure all the inputs
- Evaluate the inputs to handle unexpected values, emergency, etc.. (Currently this function will just be empty, we have yet to determine the behavior in this situation)
- Command parser reads from the communication FIFO, if one ore more commands are completely fetched, execute them (either reading measurements and sending them back, or doing some settings, setting outputs, etc). Also, please include some diagnostics here on the FIFO size so we can experiment with its size.
- Feed the watch dog timer (again, please try and include some diagnostics here about what the count value is prior to feeding so we can begin to formulate an idea about what an appropriate setting for that will be.