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
main.cpp
- Committer:
- JornD
- Date:
- 2019-10-01
- Revision:
- 2:6d026d5655c5
- Parent:
- 1:a5c1140f464a
- Child:
- 5:77929f5f1f32
File content as of revision 2:6d026d5655c5:
//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) { } }