Heltec Mesh Pocket added

Removed the hardcoded Board model so it now compiles  with Arduino CLI using 'compiler.cpp.extra_flags=-DBOARD_MODEL=BOARD_HELTEC_MESHP' `
This commit is contained in:
TheBeadster 2025-08-04 15:05:56 +01:00
parent 43aa2f60c8
commit b943303d51
14 changed files with 6 additions and 32 deletions

View file

@ -1,11 +0,0 @@
#include "Bluetooth.h"
#if MCU_VARIANT == MCU_NRF52
bool SerialBT_init = false;
#endif
uint32_t bt_pairing_started = 0;
uint8_t dev_bt_mac[BT_DEV_ADDR_LEN];
char bt_da[BT_DEV_ADDR_LEN];
char bt_dh[BT_DEV_HASH_LEN];
char bt_devname[11];

View file

@ -1,5 +1,4 @@
// Copyright (C) 2024, Mark Qvist
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
@ -12,7 +11,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "board_config.h"
#if MCU_VARIANT == MCU_ESP32
#if HAS_BLUETOOTH == true
#include "BluetoothSerial.h"

View file

@ -14,8 +14,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//#define BOARD_MODEL BOARD_HELTEC_MESHP
//#define BOARD_MODEL BOARD_HELTEC_MESHP
#include "board_config.h"
#include "Interfaces.h"
#include "ROM.h"

View file

@ -12,7 +12,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "board_config.h"
#include "ROM.h"
#include "Boards.h"

View file

@ -12,7 +12,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "board_config.h"
#include <FS.h>
#include <SPIFFS.h>
#include <WiFi.h>

View file

@ -12,10 +12,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "board_config.h"
#include <Ed25519.h>
#if MCU_VARIANT == MCU_ESP32
#include "mbedtls/md.h"
#include "esp_ota_ops.h"

View file

@ -12,7 +12,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "board_config.h"
#include <Adafruit_GFX.h>
#define DISP_W 128

View file

@ -12,7 +12,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "board_config.h"
#ifndef FRAMING_H
#define FRAMING_H

View file

@ -12,7 +12,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "board_config.h"
const unsigned char bm_cable [] PROGMEM = {
0x00, 0x00, 0x00, 0x1c, 0x00, 0x38, 0x07, 0xfc, 0x08, 0x38, 0x10, 0x1c, 0x10, 0x00, 0x08, 0x00,

View file

@ -12,7 +12,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "board_config.h"
#ifndef INPUT_H
#define INPUT_H

View file

@ -12,7 +12,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "board_config.h"
#if BOARD_MODEL == BOARD_TBEAM || BOARD_MODEL == BOARD_TBEAM_S_V1
#include <XPowersLib.h>

View file

@ -13,9 +13,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//#define BOARD_MODEL BOARD_HELTEC_MESHP // MeshPocket
//BD
#include "board_config.h"
//BD
#include <Arduino.h>
#include <SPI.h>
#include "Utilities.h"

View file

@ -4,9 +4,6 @@
// Modifications and additions copyright 2024 by Mark Qvist & Jacob Eva
// Obviously still under the MIT license.
//BD
#include "board_config.h"
//BD
#include "Radio.hpp"
#include "src/misc/ModemISR.h"

View file

@ -12,8 +12,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "board_config.h"
#include "Radio.hpp"
#include "Config.h"