* Add Meshnology W12 (WiFi LoRa 32 V5) variant with LR2021 radio ESP32-S3R8 + 16 MB flash + Semtech LR2021 dual-band LoRa + SSD1315 OLED, Heltec V3-style pinout. Pin map comes from the vendor pin sheet and vendor Arduino demos, confirmed on hardware: I2C scan finds the OLED at 0x3C on SDA17/SCL18, and the LR2021 answers on NSS=8 SCK=9 MISO=11 MOSI=10 with BUSY=13/NRESET=12 verified by reset-pulse probing. The IRQ line needs LR2021_IRQ_DIO_NUM 8. RadioLib defaults irqDioNum to 5, but DIO5 is not bonded out on this board - the two IRQ lines are DIO7 -> IO7 and DIO8 -> IO14, established by driving each radio DIO as a GPIO output and watching which ESP32 pin followed. Left at the default, every interrupt is routed to a floating pin: RX/TX still appear to work because RadioLibInterface::pollMissedIrqs() falls back to polling the IRQ status register, but the blocking scanChannel() waits on the pin itself and never returns. A shadow pins_arduino.h is needed because the generic esp32s3 one defines RGB_BUILTIN, which pulls the Arduino RMT HAL into the link and fails against this build's FreeRTOS config. * Address review: add W12 variant metadata, trim comments Declares the custom_meshtastic_* metadata the build manifest expects. Without it the emitted .mt.json carried no hwModel, slug, display name or support level, so the board was invisible to the flasher - and board_level = extra kept it out of PR builds entirely, which is why it never appeared in this PR's board list. It now matches the W10 sibling at board_level = pr with support level 1. hwModel stays 255/PRIVATE_HW until a W12 enum lands in the protobufs. Also trims the header comments to the one-or-two-line limit in AGENTS.md; the vendor pin sheet and probing evidence live in the PR description.
61 lines
1.6 KiB
C
61 lines
1.6 KiB
C
// Meshnology W12 - shadows the generic esp32s3 pins, minus RGB_BUILTIN/LED_BUILTIN so
|
|
// digitalWrite() does not pull in the RMT RGB HAL, which fails to link in this build.
|
|
#ifndef Pins_Arduino_h
|
|
#define Pins_Arduino_h
|
|
|
|
#include "soc/soc_caps.h"
|
|
#include <stdint.h>
|
|
|
|
#define USB_VID 0x303a
|
|
#define USB_PID 0x1001
|
|
|
|
static const uint8_t TX = 43;
|
|
static const uint8_t RX = 44;
|
|
|
|
static const uint8_t SDA = 17;
|
|
static const uint8_t SCL = 18;
|
|
|
|
// LR2021 SPI bus
|
|
static const uint8_t SS = 8;
|
|
static const uint8_t MOSI = 10;
|
|
static const uint8_t MISO = 11;
|
|
static const uint8_t SCK = 9;
|
|
|
|
static const uint8_t A0 = 1;
|
|
static const uint8_t A1 = 2;
|
|
static const uint8_t A2 = 3;
|
|
static const uint8_t A3 = 4;
|
|
static const uint8_t A4 = 5;
|
|
static const uint8_t A5 = 6;
|
|
static const uint8_t A6 = 7;
|
|
static const uint8_t A7 = 8;
|
|
static const uint8_t A8 = 9;
|
|
static const uint8_t A9 = 10;
|
|
static const uint8_t A10 = 11;
|
|
static const uint8_t A11 = 12;
|
|
static const uint8_t A12 = 13;
|
|
static const uint8_t A13 = 14;
|
|
static const uint8_t A14 = 15;
|
|
static const uint8_t A15 = 16;
|
|
static const uint8_t A16 = 17;
|
|
static const uint8_t A17 = 18;
|
|
static const uint8_t A18 = 19;
|
|
static const uint8_t A19 = 20;
|
|
|
|
static const uint8_t T1 = 1;
|
|
static const uint8_t T2 = 2;
|
|
static const uint8_t T3 = 3;
|
|
static const uint8_t T4 = 4;
|
|
static const uint8_t T5 = 5;
|
|
static const uint8_t T6 = 6;
|
|
static const uint8_t T7 = 7;
|
|
static const uint8_t T8 = 8;
|
|
static const uint8_t T9 = 9;
|
|
static const uint8_t T10 = 10;
|
|
static const uint8_t T11 = 11;
|
|
static const uint8_t T12 = 12;
|
|
static const uint8_t T13 = 13;
|
|
static const uint8_t T14 = 14;
|
|
|
|
#endif /* Pins_Arduino_h */
|