Packages/Keil/STM32F0xx_DFP/1.5.0/Boards/ST/STM32F072-Discovery/RTX_Blinky/RTX_Blinky.c
/*----------------------------------------------------------------------------
 * blinkLED: blink LED and check button state
 *----------------------------------------------------------------------------*/
blink LED and check button state
blink LED and check button state
void blinkLED(void const *argument) {
  int32_t max_num = LED_GetCount();
  int32_t num = 0;
  for (;;) {
    LED_On(num);                                           
    osSignalWait(0x0001, osWaitForever);
    LED_Off(num);                                          
    osSignalWait(0x0001, osWaitForever);
    num++;                                                 
    if (num >= max_num) {
      num = 0;                                             
    }
  }
}
void blinkLED ( void const * argument ) { int32_t max_num = LED_GetCount ( ) ; int32_t num = 0 ; for ( ; ; ) { LED_On ( num ) ; osSignalWait ( 0x0001 , osWaitForever ) ; LED_Off ( num ) ; osSignalWait ( 0x0001 , osWaitForever ) ; num ++ ; if ( num >= max_num ) { num = 0 ; } } }
blinkLED: blink LED and check button state
blinkLED : blink LED and check button state
// Turn specified LED on
 // Turn specified LED off
 // Change LED number
 // Restart with first LED
