66 lines
1.3 KiB
C
66 lines
1.3 KiB
C
#ifndef __CUSTOM_BOARD_H
|
|
#define __CUSTOM_BOARD_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define LEDS_NUMBER 4
|
|
|
|
#define LED_RING_GR 9
|
|
#define LED_RING_RD 10
|
|
#define LED_BATT_RD 21
|
|
#define LED_STAT_BL 22
|
|
|
|
#define LED_START LED_RING_GR
|
|
#define BSP_LED_0 LED_RING_GR
|
|
#define BSP_LED_1 LED_RING_RD
|
|
#define BSP_LED_2 LED_BATT_RD
|
|
#define BSP_LED_3 LED_STAT_BL
|
|
#define LED_STOP LED_STAT_BL
|
|
|
|
#define LEDS_ACTIVE_STATE 0
|
|
#define LEDS_LIST { LED_RING_GR, LED_RING_RD, LED_BATT_RD, LED_STAT_BL }
|
|
|
|
#define BUTTONS_NUMBER 1
|
|
|
|
#define BUTTON_CENTER 30
|
|
|
|
#define BUTTON_START BUTTON_CENTER
|
|
#define BSP_BUTTON_0 BUTTON_CENTER
|
|
#define BUTTON_STOP BUTTON_CENTER
|
|
|
|
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
|
|
|
|
#define BUTTONS_ACTIVE_STATE 0
|
|
#define BUTTONS_LIST { BUTTON_CENTER }
|
|
|
|
#define RX_PIN_NUMBER 6
|
|
#define TX_PIN_NUMBER 7
|
|
#define CTS_PIN_NUMBER 0
|
|
#define RTS_PIN_NUMBER 0
|
|
|
|
#define HWFC false
|
|
|
|
#define PIN_POWER_LATCH 29
|
|
#define PIN_POWER_WAKE_BTN 30
|
|
#define PIN_POWER_WAKE_RTC 0
|
|
|
|
#define PIN_PMS_UART_TX 5
|
|
#define PIN_PMS_UART_RX 4
|
|
#define PIN_PMS_RST 0
|
|
#define PIN_PMS_SLP 0
|
|
|
|
#define PIN_RTC_I2C_SDA 23
|
|
#define PIN_RTC_I2C_SCL 24
|
|
|
|
#define PIN_BAT_SENSE 3
|
|
#define PIN_BM_CHRG 11
|
|
#define PIN_BM_STDBY 12
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|