Harden nRF52 OTA, USB sessions, and T096 controls

Bind Companion replies to request transports, make dual-CDC USB sessions nonblocking and reconnect-safe, and harden nRF52 watchdog/OTA storage paths. Fix T096 button debounce, display wake, sleep races, and the compact message layout; add exact WisBlock OTA profiles plus expanded native/static/HIL documentation.
This commit is contained in:
mikecarper committed 2026-09-01 20:51:43 -07:00
1 parent fcd1f8cc6c
commit ecaa5ac2a0
61 files changed
+4446 -226

No files matched your search

+8
View File
@@ -11,9 +11,12 @@ constexpr uint8_t LOW = 0;
constexpr uint8_t HIGH = 1;
constexpr uint8_t INPUT = 0;
constexpr uint8_t OUTPUT = 1;
constexpr uint8_t INPUT_PULLUP = 2;
constexpr uint8_t INPUT_PULLDOWN = 3;
inline uint8_t g_mock_pin_modes[64] = {};
inline uint8_t g_mock_pin_levels[64] = {};
inline int g_mock_analog_levels[64] = {};
using std::isnan;
@@ -46,10 +49,15 @@ inline int digitalRead(uint8_t pin) {
return pin < 64 ? g_mock_pin_levels[pin] : LOW;
}
inline int analogRead(uint8_t pin) {
return pin < 64 ? g_mock_analog_levels[pin] : 0;
}
inline void resetArduinoMock() {
g_mock_millis = 0;
for (uint8_t pin = 0; pin < 64; pin++) {
g_mock_pin_modes[pin] = INPUT;
g_mock_pin_levels[pin] = LOW;
g_mock_analog_levels[pin] = 0;
}
}