Cleanup, set Pinetime as default
This commit is contained in:
parent
b7aa04e1f5
commit
b3e6da7514
|
@ -1,4 +1,5 @@
|
|||
#include "BatteryController.h"
|
||||
#include "drivers/PinMap.h"
|
||||
#include <hal/nrf_gpio.h>
|
||||
#include <nrfx_saadc.h>
|
||||
#include <algorithm>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <drivers/include/nrfx_saadc.h>
|
||||
#include <array>
|
||||
#include <numeric>
|
||||
#include <drivers/PinMap.h>
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Controllers {
|
||||
|
|
|
@ -2,12 +2,14 @@
|
|||
|
||||
namespace Pinetime {
|
||||
namespace PinMap {
|
||||
#define WATCH_P8
|
||||
|
||||
#ifdef WATCH_P8
|
||||
// COLMI P8
|
||||
static constexpr uint8_t Charging = 19;
|
||||
static constexpr uint8_t Cst816sReset = 13;
|
||||
static constexpr uint8_t Button = 17;
|
||||
#else
|
||||
// Pinetime
|
||||
static constexpr uint8_t Charging = 12;
|
||||
static constexpr uint8_t Cst816sReset = 10;
|
||||
static constexpr uint8_t Button = 13;
|
||||
|
@ -32,31 +34,5 @@ namespace Pinetime {
|
|||
|
||||
static constexpr uint8_t TwiScl = 7;
|
||||
static constexpr uint8_t TwiSda = 6;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#ifdef WATCH_P8
|
||||
|
||||
// BatteryController.h
|
||||
#define PINMAP_CHARGING_PIN 19
|
||||
|
||||
// Cst816s.h
|
||||
#define PINMAP_CST816S_RESET_PIN 13
|
||||
|
||||
// SystemTask.h
|
||||
#define PINMAP_BUTTON_PIN 17
|
||||
|
||||
#else
|
||||
|
||||
// BatteryController.h
|
||||
#define PINMAP_CHARGING_PIN 12
|
||||
|
||||
// Cst816s.h
|
||||
#define PINMAP_CST816S_RESET_PIN 10
|
||||
|
||||
// SystemTask.h
|
||||
#define PINMAP_BUTTON_PIN 13
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue