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.
handlers.cpp@3:32e67d121c7f, 2013-07-12 (annotated)
- Committer:
- yuhangzhu
- Date:
- Fri Jul 12 20:02:01 2013 +0000
- Revision:
- 3:32e67d121c7f
- Parent:
- 2:45db4f4ca70d
- Child:
- 6:e510aab8f2ce
line buffer first trial 0.1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yuhangzhu | 2:45db4f4ca70d | 1 | #include "parameters.h" |
yuhangzhu | 2:45db4f4ca70d | 2 | |
yuhangzhu | 2:45db4f4ca70d | 3 | void mode_idle_handler(int* state, char sel) |
yuhangzhu | 2:45db4f4ca70d | 4 | { |
yuhangzhu | 3:32e67d121c7f | 5 | if(sel>='1' && sel<='7') |
yuhangzhu | 2:45db4f4ca70d | 6 | *state = sel - '0'; //select a mode |
yuhangzhu | 2:45db4f4ca70d | 7 | else |
yuhangzhu | 2:45db4f4ca70d | 8 | *state = MODE_IDLE; |
yuhangzhu | 2:45db4f4ca70d | 9 | } |