Embedded System CW2
Dependencies: Crypto_light mbed-rtos mbed
Fork of ES_CW2_Starter by
Revision 1:184cb0870c04, committed 2017-02-27
- Comitter:
- estott
- Date:
- Mon Feb 27 10:25:06 2017 +0000
- Parent:
- 0:de4320f74764
- Child:
- 2:4e88faab6988
- Commit message:
- Added mbed library
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Feb 17 22:47:01 2017 +0000 +++ b/main.cpp Mon Feb 27 10:25:06 2017 +0000 @@ -93,7 +93,6 @@ //Main int main() { //Initialise the serial port - serialThread.start(&serialOut); Serial pc(SERIAL_TX, SERIAL_RX); pc.printf("Hello\n\r"); @@ -101,7 +100,7 @@ motorHome(); //Poll the rotor state and set the motor outputs accordingly to spin the motor - while {1} { + while (1) { motorOut(readRotorState()+leadState); } }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Mon Feb 27 10:25:06 2017 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#34c1facf42a174f47fdf9002cd8c6bf10ac41744