mbed-rtos support for nucleo f401re
Dependencies: mbed-rtos_F401 mbed-src
Fork of rtos_basic by
Revision 8:88582a97af69, committed 2014-04-19
- Comitter:
- abdess
- Date:
- Sat Apr 19 13:12:07 2014 +0000
- Parent:
- 7:ae8015ac5102
- Child:
- 9:c2b6793d3381
- Commit message:
- a
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Apr 19 13:00:51 2014 +0000 +++ b/main.cpp Sat Apr 19 13:12:07 2014 +0000 @@ -20,27 +20,4 @@ pc.printf("main thread running !\n"); Thread::wait(1000); } -} -#include "mbed.h" -#include "rtos.h" - -Serial pc(SERIAL_TX, SERIAL_RX); -DigitalOut led2(LED2); - -void led2_thread(void const *args) { - while (true) { - led2 = !led2; - Thread::wait(1000); - } -} - -int main() { - Thread thread(led2_thread); - int i = 1; - - while(1) { - wait(1); - pc.printf("main thread running !\n"); - Thread::wait(1000); - } -} +} \ No newline at end of file