1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #ifndef PCA10000_H
- #define PCA10000_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "nrf_gpio.h"
- #if 1
- #define LEDS_NUMBER 3
- #define LED_RGB_RED 21
- #define LED_RGB_GREEN 22
- #define LED_RGB_BLUE 23
- #define LED_START LED_RGB_RED
- #define BSP_LED_0 LED_RGB_RED
- #define BSP_LED_1 LED_RGB_GREEN
- #define BSP_LED_2 LED_RGB_BLUE
- #define LED_STOP LED_RGB_BLUE
- #define LEDS_ACTIVE_STATE 0
- #define BUTTONS_LIST {}
- #define LEDS_LIST { LED_RGB_RED, LED_RGB_GREEN, LED_RGB_BLUE }
- #define LEDS_INV_MASK LEDS_MASK
- #define BUTTONS_NUMBER 0
- #define RX_PIN_NUMBER 11
- #define TX_PIN_NUMBER 9
- #define CTS_PIN_NUMBER 10
- #define RTS_PIN_NUMBER 8
- #define HWFC true
- #else
- #define RX_PIN_NUMBER 3
- #define TX_PIN_NUMBER 1
- #define CTS_PIN_NUMBER 2
- #define RTS_PIN_NUMBER 0
- #define HWFC true
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|