* added companion radio targets for T3S3 board

This commit is contained in:
Scott Powell 2025-02-04 22:09:46 +11:00
parent 6cef056488
commit 8c9144f785
3 changed files with 38 additions and 1 deletions

View file

@ -8,13 +8,21 @@ class ArduinoSerialInterface : public BaseSerialInterface {
uint8_t _state;
uint16_t _frame_len;
uint16_t rx_len;
#ifdef LILYGO_T3S3
HWCDC* _serial;
#else
HardwareSerial* _serial;
#endif
uint8_t rx_buf[MAX_FRAME_SIZE];
public:
ArduinoSerialInterface() { _isEnabled = false; _state = 0; }
#ifdef LILYGO_T3S3
void begin(HWCDC& serial) { _serial = &serial; }
#else
void begin(HardwareSerial& serial) { _serial = &serial; }
#endif
// BaseSerialInterface methods
void enable() override;