Loading...
Searching...
No Matches

Macros and inline functions for controlling the on-board LEDs. More...

Detailed Description

Macros and inline functions for controlling the on-board LEDs.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file led.h.

#include "board.h"
+ Include dependency graph for led.h:

Go to the source code of this file.

LED fallback macros

#define LED0_ON
 defined empty
 
#define LED0_OFF
 defined empty
 
#define LED0_TOGGLE
 defined empty
 
#define LED1_ON
 defined empty
 
#define LED1_OFF
 defined empty
 
#define LED1_TOGGLE
 defined empty
 
#define LED2_ON
 defined empty
 
#define LED2_OFF
 defined empty
 
#define LED2_TOGGLE
 defined empty
 
#define LED3_ON
 defined empty
 
#define LED3_OFF
 defined empty
 
#define LED3_TOGGLE
 defined empty
 
#define LED4_ON
 defined empty
 
#define LED4_OFF
 defined empty
 
#define LED4_TOGGLE
 defined empty
 
#define LED5_ON
 defined empty
 
#define LED5_OFF
 defined empty
 
#define LED5_TOGGLE
 defined empty
 
#define LED6_ON
 defined empty
 
#define LED6_OFF
 defined empty
 
#define LED6_TOGGLE
 defined empty
 
#define LED7_ON
 defined empty
 
#define LED7_OFF
 defined empty
 
#define LED7_TOGGLE
 defined empty
 
#define LED_NUMOF   0
 Number of LEDs available on the current board.
 

Convenience LED control functions and macros

#define LED_ON(id)   LED ## id ##_ON
 Turn on an LED.
 
#define LED_OFF(id)   LED ## id ## _OFF
 Turn off an LED.
 
#define LED_TOGGLE(id)   LED ## id ##_TOGGLE
 Toggle an LED.
 
static void led_on (unsigned id)
 Turn on an LED.
 
static void led_off (unsigned id)
 Turn off an LED.
 
static void led_toggle (unsigned id)
 Toggle an LED.