mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-11-20 15:52:12 +01:00
feat: support headless LILYGO T-Embed CC1101 Plus
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.
This commit is contained in:
parent
e873dc8309
commit
fdf840a236
22 changed files with 715 additions and 31 deletions
26
tests/board-profile/Arduino.h
Normal file
26
tests/board-profile/Arduino.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue