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.
Fork of rtos_signals by
main.cpp
00001 #include "mbed.h" 00002 #include "rtos.h" 00003 00004 DigitalOut led(LED1); 00005 00006 void led_thread(void const *argument) { 00007 while (true) { 00008 Thread::signal_wait(0x1); 00009 led = !led; 00010 } 00011 } 00012 00013 int main (void) { 00014 Thread thread(led_thread); 00015 00016 while (true) { 00017 Thread::wait(1000); 00018 thread.signal_set(0x1); 00019 } 00020 }
Generated on Tue Jul 19 2022 01:51:11 by
1.7.2
