|
Contiki 3.x
|
The LEDs API defines a set of functions for accessing LEDs for Contiki plaforms with LEDs. More...
Functions | |
| void | leds_blink (void) |
| Blink all LEDs. | |
| unsigned char | leds_get (void) |
| Returns the current status of all leds. | |
| void | leds_arch_init (void) |
| Leds implementation. More... | |
The LEDs API defines a set of functions for accessing LEDs for Contiki plaforms with LEDs.
A platform with LED support must implement this API.
| void leds_arch_init | ( | void | ) |
Leds implementation.
Leds implementation.
The FRDM-KL25Z has a tri-colour LED: Red is connected to PTB18 Green is connected to PTB19 Blue is connected to PTD1
Definition at line 48 of file leds-arch.c.
References GPIO_C_BASE, GPIO_D_BASE, GPIO_D_NUM, GPIO_SET_OUTPUT, gpio_set_output(), halGpioConfig(), IOC_OVERRIDE_OE, ioc_set_over(), port_conf_pin(), port_pin_to_mask(), and PORTx_PIN.
1.8.6