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.
main.cpp
- Committer:
- yuhangzhu
- Date:
- 2013-07-12
- Revision:
- 1:cb6811ef87de
- Parent:
- 0:249f6f78cd05
- Child:
- 2:45db4f4ca70d
File content as of revision 1:cb6811ef87de:
#include "mbed.h" #include "menu.h" #include "parameters.h" Serial pc(USBTX, USBRX); int main() { char sel; pc.baud(115200); //config buad rate state = MODE_IDLE; while(1) { switch(state) { case MODE_IDLE: pc.printf("%s", main_menu); sel = pc.getc(); mode_idle_handler(&state, sel); pc.printf("%d", state); break; } } return 0; }