#ifndef STATUS_H
#define STATUS_H
#include <stdint.h>
void status_init(void);
void status_boot_beep(void);
/*
 * status_update() — call every main loop iteration.
 * Controls LED1 (PC15) and LED2 (PC14), both active-low.
 *
 *  Solid ON  = good (normal operation)
 *  Slow blink (~1 Hz) = needs attention (error or fault)
 *
 *  LED1 solid + LED2 off  → disarmed, IMU OK
 *  LED1 solid + LED2 solid → armed
 *  Both slow blink         → tilt fault
 *  Both fast blink (200ms) -- remote e-stop active (highest priority)
 *  LED1 slow blink + LED2 solid → IMU error (solid LED2 = always-on indicator)
 */
void status_update(uint32_t tick, int imu_ok, int armed, int tilt_fault, int remote_estop);
#endif
