Updated the boardconfig class to support the RFM95W, support for NRF is dropped

This commit is contained in:
Th3maz1ng 2025-12-26 12:27:37 +01:00
parent 7667859a27
commit b5a3045f7e
2 changed files with 16 additions and 11 deletions

View File

@ -3,15 +3,16 @@
BoardConfig::BoardConfig( const Pin ExternalInt,
const Pin LDOEnable,
const Pin BattVSensEnable,
const Pin NRFCe,
const Pin RFMRst,
const Pin SwitchVSensEnable,
const Pin NRFCs,
const Pin RFMDI0,
const Pin RFMCs,
const Pin MOSI,
const Pin MISO,
const Pin SCK,
const Pin BattAnalogVSens,
const Pin SwitchAnalogVSens
):ExternalInt(ExternalInt), LDOEnable(LDOEnable), BattVSensEnable(BattVSensEnable), NRFCe(NRFCe), SwitchVSensEnable(SwitchVSensEnable), NRFCs(NRFCs), MOSI(MOSI), MISO(MISO), SCK(SCK), BattAnalogVSens(BattAnalogVSens), SwitchAnalogVSens(SwitchAnalogVSens)
):ExternalInt(ExternalInt), LDOEnable(LDOEnable), BattVSensEnable(BattVSensEnable), RFMRst(RFMRst), SwitchVSensEnable(SwitchVSensEnable), RFMDI0(RFMDI0), RFMCs(RFMCs), MOSI(MOSI), MISO(MISO), SCK(SCK), BattAnalogVSens(BattAnalogVSens), SwitchAnalogVSens(SwitchAnalogVSens)
{
}

View File

@ -1,6 +1,8 @@
/**
* Author : Anatole SCHRAMM-HENRY
* Created the : 08/09/2022
* Created the: 08/09/2022
* Updated the: 20/12/2025
* - Replaced the NRF module with a RFM95W (LoRa)
* This class encapsulates the various configuration values for the board like the Pin Mapping for instance.
*/
#ifndef BOARDCONFIG_H
@ -15,9 +17,10 @@ class BoardConfig
const Pin ExternalInt = D2_EXTERNAL_INT,
const Pin LDOEnable = D4_LDO_EN,
const Pin BattVSensEnable = D5_BAT_V_SENS_EN,
const Pin NRFCe = D6_NRF_CE,
const Pin RFMRst = D6_RFM_RST,
const Pin SwitchVSensEnable = D7_SWITCH_V_SENS_EN,
const Pin NRFCs = D10_NRF_CS,
const Pin RFMDI0 = D8_RFM_DI0,
const Pin RFMCs = D10_RFM_CS,
const Pin MOSI = D11_MOSI,
const Pin MISO = D12_MISO,
const Pin SCK = D13_SCK,
@ -28,9 +31,10 @@ class BoardConfig
const Pin ExternalInt;
const Pin LDOEnable;
const Pin BattVSensEnable;
const Pin NRFCe;
const Pin RFMRst;
const Pin SwitchVSensEnable;
const Pin NRFCs;
const Pin RFMDI0;
const Pin RFMCs;
const Pin MOSI;
const Pin MISO;
const Pin SCK;