Sample example of using EventFlags in mbed-os threads

Dependencies:   IHM_V2

/media/uploads/jacquesolivierklein/mbed-os-eventflags.png

Purpose: Sample example of using EventFlags in mbed-os threads

that trigger a thread thrgough its EventFlags. Target: L432KC / Nboard (from IUT-Cachan) Tested: YES (2019-01-09) Author: Jacques-Olivier Klein - IUT de CACHAN Date: 2018-02-10 rev. 2019-01-09 OS_STACK_SIZE=4096 Libraries: mbed-os rev5345:c966348(03jan2019) + IHMV2 (from IUT-Cachan) rev6:ad91067

Revision:
29:76fa085de35e
Parent:
28:db453b7b2b6f
Child:
31:2afcd3a7b307
--- a/main.cpp	Sat Feb 10 23:45:41 2018 +0000
+++ b/main.cpp	Sun Feb 11 19:04:13 2018 +0000
@@ -17,7 +17,7 @@
 InterruptIn BP2Interrupt(PB_0); 
 InterruptIn BP3Interrupt(PB_7); 
 
-void led6_thread_signal();
+void led_thread_signal();
 
 void isrBP0 ();
 void isrBP1 ();
@@ -41,7 +41,7 @@
       BP3Interrupt.mode(PullUp);
       BP3Interrupt.fall(&isrBP3);
        
-    thread_signal.start(led6_thread_signal);   
+    thread_signal.start(led_thread_signal);   
  
     while(1){   
         Thread::wait(4000);  
@@ -50,7 +50,7 @@
     }
 }
 
-void led6_thread_signal(){   
+void led_thread_signal(){   
     while (true) {
         Thread::signal_wait(0xF); // wait for 1 and 2 and 4 and 8
         L1=!L1;