Controlling the LEDs and Keys.
More...
Overview
GPIO API in liburacoli_<board>.a
- Usage
- Examples
static uint8_t keys_debounced |
( |
void |
| ) |
|
|
static |
static void trap_if_key_pressed |
( |
void |
| ) |
|
|
static |
#define LED_CLR |
( |
|
ln | ) |
do{}while(0) |
#define LED_GET_VALUE |
( |
| ) |
0 |
#define LED_INIT |
( |
| ) |
do{}while(0) |
Initialisation of the LED port.
- Examples:
- xmpl_hif_echo.c, xmpl_i2c.c, xmpl_isl29020.c, xmpl_key_events.c, xmpl_keys.c, xmpl_leds.c, xmpl_linbuf_rx.c, xmpl_linbuf_tx.c, xmpl_lm73.c, xmpl_ow.c, xmpl_radio_range.c, xmpl_radio_stream.c, xmpl_rtc.c, xmpl_sensor.c, xmpl_timer.c, xmpl_timer_callback.c, xmpl_trx_base.c, xmpl_trx_echo.c, xmpl_trx_rx.c, xmpl_trx_rxaack.c, xmpl_trx_tx.c, xmpl_trx_txaret.c, and xmpl_tsl2550.c.
Definition at line 116 of file ioutil.h.
#define LED_SET |
( |
|
ln | ) |
do{}while(0) |
Switch the LED with the number ln ON.
- Examples:
- xmpl_i2c.c, xmpl_isl29020.c, xmpl_leds.c, xmpl_lm73.c, xmpl_ow.c, xmpl_rtc.c, xmpl_sensor.c, xmpl_trx_base.c, xmpl_trx_tx.c, xmpl_trx_txaret.c, and xmpl_tsl2550.c.
Definition at line 163 of file ioutil.h.
#define LED_SET_VALUE |
( |
|
x | ) |
do{}while(0) |
#define LED_TOGGLE |
( |
|
ln | ) |
do{}while(0) |
Toggle the LED with the number n.
- Examples:
- xmpl_i2c.c, xmpl_isl29020.c, xmpl_key_events.c, xmpl_leds.c, xmpl_linbuf_rx.c, xmpl_linbuf_tx.c, xmpl_lm73.c, xmpl_radio_range.c, xmpl_radio_stream.c, xmpl_timer.c, xmpl_timer_callback.c, xmpl_trx_base.c, xmpl_trx_rxaack.c, xmpl_trx_tx.c, xmpl_trx_txaret.c, and xmpl_tsl2550.c.
Definition at line 199 of file ioutil.h.
#define LED_VAL |
( |
|
msk, |
|
|
|
val |
|
) |
| do{}while(0) |