mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-11-20 15:52:12 +01:00
Configure the integrated radio power, shared SPI selects, RF path and fixed wiring without changing generic boards. Preload output latches for Arduino 3 and publish radio availability only after register and RX checks succeed. Reuse the existing partition table and protect integrated, USB and PSRAM pins across configuration and GPIO output paths. Exercise production setup, RX and queue admission methods in a hardware-boundary host harness, run it in CI and document the opt-in build. Keep restore policy, security corrections and release tooling outside this board-only change.
26 lines
667 B
C++
26 lines
667 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
using byte = uint8_t;
|
|
class String;
|
|
|
|
constexpr int LOW = 0;
|
|
constexpr int HIGH = 1;
|
|
constexpr int INPUT = 0x01;
|
|
constexpr int OUTPUT = 0x03;
|
|
void pinMode(uint8_t pin, uint8_t mode);
|
|
void digitalWrite(uint8_t pin, uint8_t value);
|
|
int digitalRead(uint8_t pin);
|
|
unsigned long millis();
|
|
void delay(unsigned long duration);
|
|
|
|
struct TestSerial {
|
|
template <typename... Args> void printf(const char *, Args...) {}
|
|
void println(const char *) {}
|
|
};
|
|
extern TestSerial Serial;
|
|
struct TestESP {
|
|
unsigned int getFlashChipSize() { return 16777216; }
|
|
unsigned int getPsramSize() { return 8388608; }
|
|
};
|
|
extern TestESP ESP;
|