123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #ifndef PCA20006_H
- #define PCA20006_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "nrf_gpio.h"
- #define LEDS_NUMBER 3
- #define LED_RGB_RED 16
- #define LED_RGB_GREEN 12
- #define LED_RGB_BLUE 15
- #define LEDS_ACTIVE_STATE 0
- #define BSP_LED_0 LED_RGB_RED
- #define BSP_LED_1 LED_RGB_GREEN
- #define BSP_LED_2 LED_RGB_BLUE
- #define LEDS_LIST { LED_RGB_RED, LED_RGB_GREEN, LED_RGB_BLUE}
- #define LEDS_INV_MASK LEDS_MASK
- #define BUTTON_0 8
- #define BUTTON_1 18
- #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
- #define BUTTONS_ACTIVE_STATE 0
- #define BSP_BUTTON_0 BUTTON_0
- #define BSP_BUTTON_1 BUTTON_1
- #define BUTTONS_NUMBER 2
- #define BUTTONS_LIST { BUTTON_0, BUTTON_1 }
- #define RX_PIN_NUMBER 24
- #define TX_PIN_NUMBER 9
- #define CTS_PIN_NUMBER 21
- #define RTS_PIN_NUMBER 11
- #define HWFC true
- #ifdef __cplusplus
- }
- #endif
- #endif
|