123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- #ifndef D52STARTERKIT_H
- #define D52STARTERKIT_H
- #include "nrf_gpio.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define LEDS_NUMBER 4
- #define LED_A 24
- #define LED_B 31
- #define LED_C 17
- #define LED_D 20
- #define LEDS_ACTIVE_STATE 0
- #define LEDS_LIST { LED_A, LED_B, LED_C, LED_D }
- #define BSP_LED_0 LED_A
- #define BSP_LED_1 LED_B
- #define BSP_LED_2 LED_C
- #define BSP_LED_3 LED_D
- #define LEDS_INV_MASK LEDS_MASK
- #define BUTTONS_NUMBER 4
- #define BUTTON_A 6
- #define BUTTON_B 7
- #define BUTTON_C 16
- #define BUTTON_D 19
- #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
- #define BUTTONS_ACTIVE_STATE 0
- #define BSP_BUTTON_0 BUTTON_A
- #define BSP_BUTTON_1 BUTTON_B
- #define BSP_BUTTON_2 BUTTON_C
- #define BSP_BUTTON_3 BUTTON_D
- #define BUTTONS_LIST { BUTTON_A, BUTTON_B, BUTTON_C, BUTTON_D }
- #define SWITCH_1 12
- #define SWITCH_2 8
- #define SWITCH_3 15
- #define SWITCH_4 11
- #define SWITCH_5 14
- #define SWITCH_PULL NRF_GPIO_PIN_PULLUP
- #define SWITCHES_NUMBER 5
- #define BSP_SWITCH_0 SWITCH_1
- #define BSP_SWITCH_1 SWITCH_2
- #define BSP_SWITCH_2 SWITCH_3
- #define BSP_SWITCH_3 SWITCH_4
- #define BSP_SWITCH_4 SWITCH_5
- #define BSP_SWITCH_0_MASK (1<<BSP_SWITCH_0)
- #define BSP_SWITCH_1_MASK (1<<BSP_SWITCH_1)
- #define BSP_SWITCH_2_MASK (1<<BSP_SWITCH_2)
- #define BSP_SWITCH_3_MASK (1<<BSP_SWITCH_3)
- #define BSP_SWITCH_4_MASK (1<<BSP_SWITCH_4)
- #define SWITCHES_MASK (BSP_SWITCH_0_MASK | BSP_SWITCH_1_MASK | BSP_SWITCH_2_MASK | BSP_SWITCH_3_MASK | BSP_SWITCH_4_MASK)
- #define RX_PIN_NUMBER UART_PIN_DISCONNECTED
- #define TX_PIN_NUMBER UART_PIN_DISCONNECTED
- #define CTS_PIN_NUMBER UART_PIN_DISCONNECTED
- #define RTS_PIN_NUMBER UART_PIN_DISCONNECTED
- #define SER_CON_RX_PIN 22
- #define SER_CON_TX_PIN 23
- #define SER_CON_CTS_PIN 25
- #define SER_CON_RTS_PIN 2
- #define SER_APP_RX_PIN 23
- #define SER_APP_TX_PIN 22
- #define SER_APP_CTS_PIN 2
- #define SER_APP_RTS_PIN 25
- #define SER_CONN_CHIP_RESET_PIN 11
- #ifdef __cplusplus
- }
- #endif
- #endif
|