123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- #ifndef PCA10040_H
- #define PCA10040_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "nrf_gpio.h"
- #define LEDS_NUMBER 4
- #define LED_START 17
- #define LED_1 17
- #define LED_2 18
- #define LED_3 19
- #define LED_4 20
- #define LED_STOP 20
- #define LEDS_ACTIVE_STATE 1
- #define LEDS_INV_MASK LEDS_MASK
- #define LEDS_LIST { LED_1, LED_2, LED_3, LED_4 }
- #define BSP_LED_0 LED_1
- #define BSP_LED_1 LED_2
- #define BSP_LED_2 LED_3
- #define BSP_LED_3 LED_4
- #define BUTTONS_NUMBER 2
- #define BUTTON_START 12
- #define BUTTON_1 12
- #define BUTTON_2 13
- #define BUTTON_3 14
- #define BUTTON_4 15
- #define BUTTON_STOP 15
- #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
- #define BUTTONS_ACTIVE_STATE 0
- #define BUTTONS_LIST { BUTTON_2, BUTTON_3 }
- #define BSP_BUTTON_1 BUTTON_2
- #define BSP_BUTTON_2 BUTTON_3
- #define RX_PIN_NUMBER 8
- #define TX_PIN_NUMBER 6
- #define CTS_PIN_NUMBER 0
- #define RTS_PIN_NUMBER 0
- #define HWFC false
- #if 0
- #define SPIS_MISO_PIN 28
- #define SPIS_CSN_PIN 12
- #define SPIS_MOSI_PIN 25
- #define SPIS_SCK_PIN 29
- #define SPIM0_SCK_PIN 29
- #define SPIM0_MOSI_PIN 25
- #define SPIM0_MISO_PIN 28
- #define SPIM0_SS_PIN 12
- #define SPIM1_SCK_PIN 2
- #define SPIM1_MOSI_PIN 3
- #define SPIM1_MISO_PIN 4
- #define SPIM1_SS_PIN 5
- #define SPIM2_SCK_PIN 12
- #define SPIM2_MOSI_PIN 13
- #define SPIM2_MISO_PIN 14
- #define SPIM2_SS_PIN 15
- #define SER_APP_RX_PIN 23
- #define SER_APP_TX_PIN 24
- #define SER_APP_CTS_PIN 2
- #define SER_APP_RTS_PIN 25
- #define SER_APP_SPIM0_SCK_PIN 27
- #define SER_APP_SPIM0_MOSI_PIN 2
- #define SER_APP_SPIM0_MISO_PIN 26
- #define SER_APP_SPIM0_SS_PIN 23
- #define SER_APP_SPIM0_RDY_PIN 25
- #define SER_APP_SPIM0_REQ_PIN 24
- #define SER_CON_RX_PIN 24
- #define SER_CON_TX_PIN 23
- #define SER_CON_CTS_PIN 25
- #define SER_CON_RTS_PIN 2
- #define SER_CON_SPIS_SCK_PIN 27
- #define SER_CON_SPIS_MOSI_PIN 2
- #define SER_CON_SPIS_MISO_PIN 26
- #define SER_CON_SPIS_CSN_PIN 23
- #define SER_CON_SPIS_RDY_PIN 25
- #define SER_CON_SPIS_REQ_PIN 24
- #define SER_CONN_CHIP_RESET_PIN 11
- #define ARDUINO_SCL_PIN 27
- #define ARDUINO_SDA_PIN 26
- #define ARDUINO_AREF_PIN 2
- #define ARDUINO_13_PIN 25
- #define ARDUINO_12_PIN 24
- #define ARDUINO_11_PIN 23
- #define ARDUINO_10_PIN 22
- #define ARDUINO_9_PIN 20
- #define ARDUINO_8_PIN 19
- #define ARDUINO_7_PIN 18
- #define ARDUINO_6_PIN 17
- #define ARDUINO_5_PIN 16
- #define ARDUINO_4_PIN 15
- #define ARDUINO_3_PIN 14
- #define ARDUINO_2_PIN 13
- #define ARDUINO_1_PIN 12
- #define ARDUINO_0_PIN 11
- #define ARDUINO_A0_PIN 3
- #define ARDUINO_A1_PIN 4
- #define ARDUINO_A2_PIN 28
- #define ARDUINO_A3_PIN 29
- #define ARDUINO_A4_PIN 30
- #define ARDUINO_A5_PIN 31
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|