Accel/tap use fire-and-forget ESP-NOW with a 10 ms FreeRTOS-safe cadence, OTA recovers from seq gaps and auto-reboots after success, and bootloader app rollback confirms after a stable boot. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
430 B
C
19 lines
430 B
C
#ifndef BLE_STREAM_H
|
||
#define BLE_STREAM_H
|
||
|
||
#include <stdbool.h>
|
||
#include <stdint.h>
|
||
|
||
/** Clamp and store BLE push period (10–16 ms; min = FreeRTOS tick). */
|
||
void ble_stream_set_period_ms(uint32_t period_ms);
|
||
|
||
uint32_t ble_stream_period_ms(void);
|
||
|
||
/**
|
||
* Re-evaluate whether the BLE push task should run (host_ble + any accel
|
||
* stream enabled). Safe to call from accel-stream handlers.
|
||
*/
|
||
void ble_stream_update(void);
|
||
|
||
#endif
|