File was renamed from hal/api/leds.c |
| | |
| | | #include <time.h> |
| | | #include <errno.h> |
| | | #include <signal.h> |
| | | #include "leds.h" |
| | | #include <getopt.h> |
| | | #include <libgen.h> |
| | | |
| | | #include "led.h" |
| | | |
| | | int g_stop = 0; |
| | | |
| | |
| | | |
| | | static led_t leds_info[LEDCNT] = |
| | | { |
| | | {"red", 0, 23, ACTIVE_HIGH, 0, NULL}, /* GPIO1_IO23 on chip0 line 23, active high */ |
| | | {"green", 4, 1, ACTIVE_HIGH, 0, NULL}, /* GPIO5_IO01 on chip4 line 1, active high */ |
| | | {"blue", 4, 8, ACTIVE_HIGH, 0, NULL}, /* GPIO5_IO08 on chip4 line 8, active high */ |
| | | {"red", 0, 23, ACTIVE_HIGH, 0, NULL}, /* #31, GPIO1_IO23 on chip0 line 23, active high */ |
| | | {"green", 4, 1, ACTIVE_HIGH, 0, NULL}, /* #33, GPIO5_IO01 on chip4 line 1, active high */ |
| | | {"blue", 4, 8, ACTIVE_HIGH, 0, NULL}, /* #35, GPIO5_IO08 on chip4 line 8, active high */ |
| | | }; |
| | | |
| | | /* Leds context */ |