DRAFT: Put gpio pins to separate file

This commit is contained in:
hubmartin
2021-08-02 21:37:48 +02:00
parent 514481ef7f
commit 28abeae21b
5 changed files with 32 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
#include <drivers/include/nrfx_saadc.h>
#include <array>
#include <numeric>
#include <drivers/PinMap.h>
namespace Pinetime {
namespace Controllers {
@@ -72,7 +73,7 @@ namespace Pinetime {
static constexpr uint8_t percentRemainingSamples = 5;
CircBuffer<percentRemainingSamples> percentRemainingBuffer {};
static constexpr uint32_t chargingPin = 12;
static constexpr uint32_t chargingPin = PINMAP_CHARGING_PIN;
static constexpr uint32_t powerPresentPin = 19;
static constexpr nrf_saadc_input_t batteryVoltageAdcInput = NRF_SAADC_INPUT_AIN7;
uint16_t voltage = 0;