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.
Dependents: state_machine_modes_1_12_11_11h
Revision 9:30c4e3e11cb5, committed 2011-12-01
- Comitter:
- Nurbol
- Date:
- Thu Dec 01 08:40:20 2011 +0000
- Parent:
- 8:d841cc27ebf9
- Commit message:
Changed in this revision
| cmd_io.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/cmd_io.h Thu Dec 01 04:15:38 2011 +0000
+++ b/cmd_io.h Thu Dec 01 08:40:20 2011 +0000
@@ -37,8 +37,15 @@
#define MAINT_MODE 'z' //add define to receive mode value
#define SORT_MODE 'y' //add define to receive mode value
-#define URGENCY 'u' //add define to receive the urgency mode
-#define EXIT 'e' // add define to receive the exit mode
+#define URGENCY 'u' //add define to receive the urgency mode
+#define EXIT 'e' //add define to receive the exit mode
+#define VALUE_LED1 'a' //add define to send data of the value led 2p
+#define VALUE_LED2 'b' //add define to send data of the value led 1p
+#define COUNTER1P 'c' //add define to send data of the counter 1p
+#define COUNTER2P 'd' //add define to send data of the counter 2p
+#define POSITION1_1P 'f' //add define to send data of the position1 1p
+#define POSITION1_2P 'g' //add define to send data of the position1 2p
+#define MOTOR 'h' //add define to send data of the motor
//
// Misc defines
@@ -55,7 +62,7 @@
uint32_t cmd_code; // extracted command code
uint32_t param[4]; // command parameters
uint32_t nos_params; // number of parameters
- uint32_t result_data[7]; // data resulting from command execution
+ uint32_t result_data[4]; // data resulting from command execution
uint32_t nos_data; // number of data items
uint32_t result_status; // status
} CMD_STRUCT;