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.
Diff: RTOS-Threads/src/Task3.cpp
- Revision:
- 31:3dde2201e54d
- Parent:
- 30:d9b988f8d84f
- Child:
- 32:7a9be7761c46
--- a/RTOS-Threads/src/Task3.cpp Mon May 12 04:43:38 2014 +0000 +++ b/RTOS-Threads/src/Task3.cpp Mon May 12 05:12:19 2014 +0000 @@ -30,15 +30,10 @@ FLIGHT_MODE mode = ATTITUDE; -#ifdef TIME_TASK3 -Timer _t3; -#endif +//Timer void Task3(void const *argument) { -#ifdef TIME_TASK3 - _t3.reset(); - _t3.start(); -#endif +//Timer if (BT.readable()) { char data = BT.getc(); @@ -385,10 +380,7 @@ else if (command_check) BT.printf("%3d %3d %3d\n", inputYPR[0], inputYPR[1], inputYPR[2]); -#ifdef TIME_TASK3 - _t3.stop(); - BT.printf("%d\n", _t3.read_us()); -#endif +//Timer } int constrainRCCommand(int input)