mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-05 19:19:18 +00:00

Some checks are pending
CI / setup (check) (push) Waiting to run
CI / setup (esp32) (push) Waiting to run
CI / setup (esp32c3) (push) Waiting to run
CI / setup (esp32c6) (push) Waiting to run
CI / setup (esp32s3) (push) Waiting to run
CI / setup (nrf52840) (push) Waiting to run
CI / setup (rp2040) (push) Waiting to run
CI / setup (rp2350) (push) Waiting to run
CI / setup (stm32) (push) Waiting to run
CI / version (push) Waiting to run
CI / check (push) Blocked by required conditions
CI / build-esp32 (push) Blocked by required conditions
CI / build-esp32s3 (push) Blocked by required conditions
CI / build-esp32c3 (push) Blocked by required conditions
CI / build-esp32c6 (push) Blocked by required conditions
CI / build-nrf52840 (push) Blocked by required conditions
CI / build-rp2040 (push) Blocked by required conditions
CI / build-rp2350 (push) Blocked by required conditions
CI / build-stm32 (push) Blocked by required conditions
CI / build-debian-src (push) Waiting to run
CI / package-pio-deps-native-tft (push) Waiting to run
CI / test-native (push) Waiting to run
CI / docker-deb-amd64 (push) Waiting to run
CI / docker-deb-amd64-tft (push) Waiting to run
CI / docker-alp-amd64 (push) Waiting to run
CI / docker-alp-amd64-tft (push) Waiting to run
CI / docker-deb-arm64 (push) Waiting to run
CI / docker-deb-armv7 (push) Waiting to run
CI / gather-artifacts (esp32) (push) Blocked by required conditions
CI / gather-artifacts (esp32c3) (push) Blocked by required conditions
CI / gather-artifacts (esp32c6) (push) Blocked by required conditions
CI / gather-artifacts (esp32s3) (push) Blocked by required conditions
CI / gather-artifacts (nrf52840) (push) Blocked by required conditions
CI / gather-artifacts (rp2040) (push) Blocked by required conditions
CI / gather-artifacts (rp2350) (push) Blocked by required conditions
CI / gather-artifacts (stm32) (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
CI / release-firmware (esp32) (push) Blocked by required conditions
CI / release-firmware (esp32c3) (push) Blocked by required conditions
CI / release-firmware (esp32c6) (push) Blocked by required conditions
CI / release-firmware (esp32s3) (push) Blocked by required conditions
CI / release-firmware (nrf52840) (push) Blocked by required conditions
CI / release-firmware (rp2040) (push) Blocked by required conditions
CI / release-firmware (rp2350) (push) Blocked by required conditions
CI / release-firmware (stm32) (push) Blocked by required conditions
CI / publish-firmware (push) Blocked by required conditions
* Firmware Built... awaiting parts for test * Add board_level key/value as per suggestion from vidplace7 * Trunk formatting applied
79 lines
1.8 KiB
C
79 lines
1.8 KiB
C
#pragma once
|
|
|
|
#define PINS_COUNT (25u)
|
|
#define NUM_DIGITAL_PINS (25u)
|
|
#define NUM_ANALOG_INPUTS (4u)
|
|
#define NUM_ANALOG_OUTPUTS (0u)
|
|
#define ADC_RESOLUTION (12u)
|
|
|
|
// LEDs
|
|
#define PIN_LED (24u)
|
|
|
|
// Serial
|
|
#define PIN_SERIAL1_TX (16u)
|
|
#define PIN_SERIAL1_RX (17u)
|
|
|
|
// SPI
|
|
#define PIN_SPI0_MISO (20u)
|
|
#define PIN_SPI0_MOSI (23u)
|
|
#define PIN_SPI0_SCK (22u)
|
|
#define PIN_SPI0_SS (21u)
|
|
|
|
// Connected to LoRa module
|
|
#define PIN_SPI1_MISO (12u)
|
|
#define PIN_SPI1_MOSI (11u)
|
|
#define PIN_SPI1_SCK (10u)
|
|
#define PIN_SPI1_SS (9u)
|
|
#define RFM95W_SS (9u)
|
|
#define RFM95W_DIO0 (14u)
|
|
#define RFM95W_DIO1 (15u)
|
|
#define RFM95W_DIO2 (18u)
|
|
#define RFM95W_RST (13u)
|
|
#define RFM95W_SPI SPI1
|
|
|
|
// Wire
|
|
#define PIN_WIRE0_SDA (0u)
|
|
#define PIN_WIRE0_SCL (1u)
|
|
|
|
// Not pinned out
|
|
#define PIN_WIRE1_SDA (31u)
|
|
#define PIN_WIRE1_SCL (31u)
|
|
#define PIN_SERIAL2_RX (31u)
|
|
#define PIN_SERIAL2_TX (31u)
|
|
|
|
#define SERIAL_HOWMANY (1u)
|
|
#define SPI_HOWMANY (2u)
|
|
#define WIRE_HOWMANY (1u)
|
|
|
|
#define LED_BUILTIN PIN_LED
|
|
|
|
static const uint8_t D0 = (16u);
|
|
static const uint8_t D1 = (17u);
|
|
static const uint8_t D2 = (20u);
|
|
static const uint8_t D3 = (23u);
|
|
static const uint8_t D4 = (22u);
|
|
static const uint8_t D5 = (2u);
|
|
static const uint8_t D6 = (3u);
|
|
static const uint8_t D7 = (0u);
|
|
static const uint8_t D8 = (1u);
|
|
static const uint8_t D9 = (4u);
|
|
static const uint8_t D10 = (5u);
|
|
static const uint8_t D11 = (6u);
|
|
static const uint8_t D12 = (7u);
|
|
static const uint8_t D13 = (8u);
|
|
static const uint8_t D14 = (13u);
|
|
static const uint8_t D15 = (14u);
|
|
static const uint8_t D16 = (15u);
|
|
static const uint8_t D17 = (18u);
|
|
static const uint8_t D18 = (24u);
|
|
|
|
static const uint8_t A0 = (26u);
|
|
static const uint8_t A1 = (27u);
|
|
static const uint8_t A2 = (28u);
|
|
static const uint8_t A3 = (29u);
|
|
static const uint8_t A4 = (19u);
|
|
static const uint8_t A5 = (21u);
|
|
|
|
#ifndef SS
|
|
#define SS PIN_SPI1_SS
|
|
#endif |