33 lines
1021 B
C
Executable File
33 lines
1021 B
C
Executable File
/*
|
|
Board Information: https://wiki.uniteng.com/en/meshtastic/station-g2
|
|
*/
|
|
|
|
#include "station_common.h"
|
|
|
|
#ifdef USE_SX1262
|
|
// Ensure the PA does not exceed the saturation output power. More
|
|
// Info:https://wiki.uniteng.com/en/meshtastic/station-g2#summary-for-lora-power-amplifier-conduction-test
|
|
#define SX126X_MAX_POWER 19
|
|
#endif
|
|
|
|
// Enable Traffic Management Module for Station G2
|
|
#ifndef HAS_TRAFFIC_MANAGEMENT
|
|
#define HAS_TRAFFIC_MANAGEMENT 1
|
|
#endif
|
|
#ifndef TRAFFIC_MANAGEMENT_CACHE_SIZE
|
|
#define TRAFFIC_MANAGEMENT_CACHE_SIZE 2048
|
|
#endif
|
|
|
|
/*
|
|
#define BATTERY_PIN 4 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
|
|
#define ADC_CHANNEL ADC1_GPIO4_CHANNEL
|
|
#define ADC_MULTIPLIER 4
|
|
#define BATTERY_SENSE_SAMPLES 15 // Set the number of samples, It has an effect of increasing sensitivity.
|
|
#define BAT_FULLVOLT 8400
|
|
#define BAT_EMPTYVOLT 5000
|
|
#define BAT_CHARGINGVOLT 8400
|
|
#define BAT_NOBATVOLT 4460
|
|
#define CELL_TYPE_LION // same curve for liion/lipo
|
|
#define NUM_CELLS 2
|
|
*/
|