Many things, including a log timing report in the test
Timing report: I (52322) LOG_TEST: === WRITE TIMING REPORT === I (52322) LOG_TEST: Iterations: 200 I (52322) LOG_TEST: Payload size: 39 bytes I (52322) LOG_TEST: Min: 49960 us I (52332) LOG_TEST: Max: 54476 us I (52332) LOG_TEST: Avg: 50005 us I (52342) LOG_TEST: Sector crossings: 2 (max 49983 us) I (52342) LOG_TEST: WDT margin: 4.9s (WDT=5s, worst=54476us) I (52352) LOG_TEST: =========================== so a write takes up to 54ms - not negligible!
This commit is contained in:
17
main/comms_events.h
Normal file
17
main/comms_events.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef COMMS_EVENTS_H
|
||||
#define COMMS_EVENTS_H
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/event_groups.h"
|
||||
|
||||
// Shared event group for WiFi/BT readiness signaling.
|
||||
// Set by webserver.c and bt_hid.c; waited on by main.c during alarm wake.
|
||||
|
||||
#define WIFI_READY_BIT BIT0 // Set when STA connected or softAP is up
|
||||
#define BT_READY_BIT BIT1 // Set when BT scan task starts
|
||||
#define COMMS_ALL_BITS (WIFI_READY_BIT | BT_READY_BIT)
|
||||
|
||||
// Must be created once (by main.c) before webserver_init() / bt_hid_init()
|
||||
extern EventGroupHandle_t comms_event_group;
|
||||
|
||||
#endif // COMMS_EVENTS_H
|
||||
Reference in New Issue
Block a user