|
HomeCore 0.1.3 (07b5544)
Bare-metal personal computer firmware for Cortex-M
|
LEDs described by the device description, numbered from 0. More...
Go to the source code of this file.
Data Structures | |
| struct | led_ops_t |
| Operations an LED driver provides; every one is required. More... | |
| struct | led_t |
| An LED: driver operations bound to one device instance. More... | |
| struct | led_table_t |
Every LED in index order; generated in devicetree.c. More... | |
Functions | |
Using LEDs | |
| unsigned | led_count (void) |
| Report how many LEDs the board describes. | |
| int | led_set (unsigned index, bool on) |
| Turn an LED on or off. | |
| int | led_get (unsigned index, bool *on) |
| Read whether an LED is lit. | |
| int | led_toggle (unsigned index) |
| Invert an LED. | |
Driver interface | |
| const led_table_t | dt_led_table |
The board's LEDs; generated in devicetree.c. | |
| void | led_register_node (vfs_node_t *node, const char *path, const led_t *led) |
| Register the device file of an LED. | |
LEDs described by the device description, numbered from 0.