Master can speak the same framed protobuf protocol over NimBLE or UART; goTool gains -ble, ble-rtt, and ble-stream timing checks for ESP-NOW coexistence. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
404 B
C
20 lines
404 B
C
#ifndef APP_CONFIG_H
|
|
#define APP_CONFIG_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#define APP_RUNNING_PARTITION_LABEL_MAX 17
|
|
|
|
typedef struct {
|
|
bool master;
|
|
uint8_t network;
|
|
/** false = UART host, true = BLE host (DIP8; mutual exclusive, boot-only). */
|
|
bool host_ble;
|
|
char running_partition[APP_RUNNING_PARTITION_LABEL_MAX];
|
|
} app_config_t;
|
|
|
|
const app_config_t *app_config_get(void);
|
|
|
|
#endif
|