Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: main.cpp
- Revision:
- 2:6d026d5655c5
- Parent:
- 1:a5c1140f464a
- Child:
- 5:77929f5f1f32
diff -r a5c1140f464a -r 6d026d5655c5 main.cpp --- a/main.cpp Mon Sep 30 14:45:28 2019 +0000 +++ b/main.cpp Tue Oct 01 07:46:43 2019 +0000 @@ -1,7 +1,33 @@ +//Global variables and objects +enum States {Idle, Demo}; +States CurrentState; +void Run_Demo(void) +{ + +} + +void Run_Idle(void) +{ + +} + +void StateMachine(void) +{ + switch(CurrentState) + { + case Demo: + Run_Demo; + break; + case Idle: + Run_Idle(); + break; + } +} int main() { + CurrentState = Idle; while(true) {