summaryrefslogtreecommitdiff
path: root/src/drivers/PinMap.h
diff options
context:
space:
mode:
authorhubmartin <hub.martin@gmail.com>2021-08-03 20:40:27 +0200
committerhubmartin <hub.martin@gmail.com>2021-08-03 20:40:27 +0200
commitb3e6da75148fcb54fdb5fe02f6bdc7d7d3905e98 (patch)
tree17eae3781e8dc2d1d159b991b76cf651c3842318 /src/drivers/PinMap.h
parentb7aa04e1f55096d754a7cc291f02f3430f5a3cd9 (diff)
Cleanup, set Pinetime as default
Diffstat (limited to 'src/drivers/PinMap.h')
-rw-r--r--src/drivers/PinMap.h58
1 files changed, 17 insertions, 41 deletions
diff --git a/src/drivers/PinMap.h b/src/drivers/PinMap.h
index 117cf11f..c8b091f1 100644
--- a/src/drivers/PinMap.h
+++ b/src/drivers/PinMap.h
@@ -2,61 +2,37 @@
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;
#endif
- static constexpr uint8_t Cst816sIrq = 28;
- static constexpr uint8_t PowerPresent = 19;
+ static constexpr uint8_t Cst816sIrq = 28;
+ static constexpr uint8_t PowerPresent = 19;
- static constexpr uint8_t Motor = 16;
+ static constexpr uint8_t Motor = 16;
- static constexpr uint8_t LcdBacklight1 = 14;
- static constexpr uint8_t LcdBacklight2 = 22;
- static constexpr uint8_t LcdBacklight3 = 23;
+ static constexpr uint8_t LcdBacklight1 = 14;
+ static constexpr uint8_t LcdBacklight2 = 22;
+ static constexpr uint8_t LcdBacklight3 = 23;
- static constexpr uint8_t SpiSck = 2;
- static constexpr uint8_t SpiMosi = 3;
- static constexpr uint8_t SpiMiso = 4;
+ static constexpr uint8_t SpiSck = 2;
+ static constexpr uint8_t SpiMosi = 3;
+ static constexpr uint8_t SpiMiso = 4;
- static constexpr uint8_t SpiFlashCsn = 5;
- static constexpr uint8_t SpiLcdCsn = 25;
- static constexpr uint8_t LcdDataCommand = 18;
-
- static constexpr uint8_t TwiScl = 7;
- static constexpr uint8_t TwiSda = 6;
+ static constexpr uint8_t SpiFlashCsn = 5;
+ static constexpr uint8_t SpiLcdCsn = 25;
+ static constexpr uint8_t LcdDataCommand = 18;
+ 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 \ No newline at end of file