This commit is contained in:
Thomas Göttgens
2025-03-16 16:18:12 +01:00
parent 2525111c39
commit 2d565c2921
5 changed files with 14 additions and 24 deletions

View File

@@ -9,14 +9,14 @@ plugins:
lint: lint:
enabled: enabled:
- prettier@3.5.3 - prettier@3.5.3
- trufflehog@3.88.16 - trufflehog@3.88.17
- yamllint@1.36.0 - yamllint@1.36.0
- bandit@1.8.3 - bandit@1.8.3
- checkov@3.2.384 - checkov@3.2.386
- terrascan@1.19.9 - terrascan@1.19.9
- trivy@0.60.0 - trivy@0.60.0
- taplo@0.9.3 - taplo@0.9.3
- ruff@0.9.10 - ruff@0.10.0
- isort@6.0.1 - isort@6.0.1
- markdownlint@0.44.0 - markdownlint@0.44.0
- oxipng@9.1.4 - oxipng@9.1.4

View File

@@ -1,8 +1,8 @@
#include "variant.h" #include "variant.h"
#include "configuration.h"
#include "nrf.h" #include "nrf.h"
#include "wiring_constants.h" #include "wiring_constants.h"
#include "wiring_digital.h" #include "wiring_digital.h"
#include "configuration.h"
#include <map> #include <map>
#include <memory> #include <memory>
#include <stddef.h> #include <stddef.h>
@@ -58,8 +58,6 @@ const uint32_t g_ADigitalPinMap[] = {
31, // D32 is P0.10 (VBAT) 31, // D32 is P0.10 (VBAT)
}; };
/* /*
Copyright (c) 2014-2015 Arduino LLC. All right reserved. Copyright (c) 2014-2015 Arduino LLC. All right reserved.
Copyright (c) 2016 Sandeep Mistry All right reserved. Copyright (c) 2016 Sandeep Mistry All right reserved.
@@ -80,7 +78,6 @@ const uint32_t g_ADigitalPinMap[] = {
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
void initVariant() void initVariant()
{ {
// LED1 & LED2 // LED1 & LED2

View File

@@ -43,7 +43,6 @@ extern "C" {
* Buttons * Buttons
*/ */
// Digital PINs // Digital PINs
#define D0 (0ul) #define D0 (0ul)
#define D1 (1ul) #define D1 (1ul)
@@ -86,7 +85,6 @@ static const uint8_t A4 = PIN_A4;
static const uint8_t A5 = PIN_A5; static const uint8_t A5 = PIN_A5;
#define ADC_RESOLUTION 12 #define ADC_RESOLUTION 12
#define PIN_SERIAL2_RX (-1) #define PIN_SERIAL2_RX (-1)
#define PIN_SERIAL2_TX (-1) #define PIN_SERIAL2_TX (-1)
@@ -99,7 +97,6 @@ static const uint8_t A5 = PIN_A5;
#define PIN_SPI_MOSI (10) #define PIN_SPI_MOSI (10)
#define PIN_SPI_SCK (8) #define PIN_SPI_SCK (8)
static const uint8_t SS = D4; static const uint8_t SS = D4;
static const uint8_t MOSI = PIN_SPI_MOSI; static const uint8_t MOSI = PIN_SPI_MOSI;
static const uint8_t MISO = PIN_SPI_MISO; static const uint8_t MISO = PIN_SPI_MISO;
@@ -117,7 +114,6 @@ static const uint8_t SCK = PIN_SPI_SCK;
#define SX126X_TXEN RADIOLIB_NC #define SX126X_TXEN RADIOLIB_NC
#define SX126X_RXEN D4 #define SX126X_RXEN D4
#define SX126X_DIO2_AS_RF_SWITCH // DIO2 is used to control the RF switch really necessary!!! #define SX126X_DIO2_AS_RF_SWITCH // DIO2 is used to control the RF switch really necessary!!!
#define SX126X_DIO3_TCXO_VOLTAGE 1.8 #define SX126X_DIO3_TCXO_VOLTAGE 1.8
@@ -135,7 +131,6 @@ static const uint8_t SCK = PIN_SPI_SCK;
static const uint8_t SDA = PIN_WIRE_SDA; static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL; static const uint8_t SCL = PIN_WIRE_SCL;
// GPS L76KB // GPS L76KB
#define GPS_L76K #define GPS_L76K
#ifdef GPS_L76K #ifdef GPS_L76K
@@ -149,8 +144,6 @@ static const uint8_t SCL = PIN_WIRE_SCL;
#define PIN_GPS_STANDBY D0 #define PIN_GPS_STANDBY D0
#endif #endif
// Battery // Battery
#define BAT_READ \ #define BAT_READ \