1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #ifndef PCA10059_H
- #define PCA10059_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "nrf_gpio.h"
- #define LEDS_NUMBER 4
- #define LED1_G NRF_GPIO_PIN_MAP(0,6)
- #define LED2_R NRF_GPIO_PIN_MAP(0,8)
- #define LED2_G NRF_GPIO_PIN_MAP(1,9)
- #define LED2_B NRF_GPIO_PIN_MAP(0,12)
- #define LED_1 LED1_G
- #define LED_2 LED2_R
- #define LED_3 LED2_G
- #define LED_4 LED2_B
- #define LEDS_ACTIVE_STATE 0
- #define LEDS_LIST { LED_1, LED_2, LED_3, LED_4 }
- #define LEDS_INV_MASK LEDS_MASK
- #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 1
- #define BUTTON_1 NRF_GPIO_PIN_MAP(1,6)
- #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
- #define BUTTONS_ACTIVE_STATE 0
- #define BUTTONS_LIST { BUTTON_1 }
- #define BSP_BUTTON_0 BUTTON_1
- #define BSP_SELF_PINRESET_PIN NRF_GPIO_PIN_MAP(0,19)
- #define HWFC true
- #ifdef __cplusplus
- }
- #endif
- #endif
|