firmware: LED heartbeat on GPIO35 (boot/alive/rx/tx/fault patterns), non-blocking
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// Status LED: makes "powered" and "repeating" visible without any USB host.
|
||||
// Exists because a standalone unit is otherwise a black box (docs/FUTURE_UI.md,
|
||||
// and one full afternoon of RF-only guessing that a glance would have solved).
|
||||
//
|
||||
// Patterns (white LED, GPIO35):
|
||||
// boot : solid ON until the radio initialises, then OFF
|
||||
// alive : 30 ms blip every 2 s (radio in RX, nothing heard recently)
|
||||
// rx valid : one 40 ms blink
|
||||
// tx (repeat) : double blink
|
||||
// fault : rapid 100 ms flashing for 5 s (recovery ladder engaged)
|
||||
//
|
||||
// The radio task only sets flags; all timing lives in a low-priority task so
|
||||
// the LED can never perturb RX/TX timing.
|
||||
#pragma once
|
||||
|
||||
void led_init(void); // GPIO setup + pattern task; LED solid ON
|
||||
void led_boot_done(void); // switch from solid-on to heartbeat patterns
|
||||
void led_notify_rx(void);
|
||||
void led_notify_tx(void);
|
||||
void led_notify_fault(void);
|
||||
Reference in New Issue
Block a user