mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-09 06:56:00 +03:00
LED: Introduce LED blinking pattern code
It might be useful to display some different blinking patterns to indicate specific system state (such as DFU mode vs. regular firmware)
This commit is contained in:
1 parent
054216d94d
commit
abba8a8d85
6 files changed
+295
-255
No files matched your search
@@ -39,11 +39,11 @@
|
||||
|
||||
#define BOARD_MCK 48000000
|
||||
|
||||
#define LED_RED PIO_PA17
|
||||
#define LED_GREEN PIO_PA18
|
||||
#define PIO_LED_RED PIO_PA17
|
||||
#define PIO_LED_GREEN PIO_PA17
|
||||
|
||||
#define PIN_LED_RED {LED_RED, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}
|
||||
#define PIN_LED_GREEN {LED_GREEN, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}
|
||||
#define PIN_LED_RED {PIO_LED_RED, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}
|
||||
#define PIN_LED_GREEN {PIO_LED_GREEN, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}
|
||||
#define PINS_LEDS PIN_LED_RED, PIN_LED_GREEN
|
||||
|
||||
#define LED_NUM_RED 0
|
||||
|
||||
Reference in new issue
Block a user