|
| 1 | +#ifndef EFEKTA_DEV_BOARD_H |
| 2 | +#define EFEKTA_DEV_BOARD_H |
| 3 | + |
| 4 | +#ifdef __cplusplus |
| 5 | +extern "C" { |
| 6 | +#endif |
| 7 | + |
| 8 | +#include "nrf_gpio.h" |
| 9 | + |
| 10 | +// LED definitions for EFEKTA_DEV_BOARD_H |
| 11 | +// Each LED color is considered a separate LED |
| 12 | +#define LEDS_NUMBER 8 |
| 13 | + |
| 14 | +#define LED1_B NRF_GPIO_PIN_MAP(0,6) |
| 15 | +#define LED2_R NRF_GPIO_PIN_MAP(0,8) |
| 16 | +#define LED2_G NRF_GPIO_PIN_MAP(1,9) |
| 17 | +#define LED2_B NRF_GPIO_PIN_MAP(0,12) |
| 18 | + |
| 19 | +// rgbw dimmer daughter board |
| 20 | +#define LED2_DW NRF_GPIO_PIN_MAP(0,31) |
| 21 | +#define LED2_DB NRF_GPIO_PIN_MAP(0,30) |
| 22 | +#define LED2_DG NRF_GPIO_PIN_MAP(0,29) |
| 23 | +#define LED2_DR NRF_GPIO_PIN_MAP(0,26) |
| 24 | + |
| 25 | +#define PSU_12V_SENSE_PIN NRF_GPIO_PIN_MAP(0,28) |
| 26 | +#define PSU_ENABLE_PIN NRF_GPIO_PIN_MAP(0,2) |
| 27 | + |
| 28 | +#define LED_1 LED1_B |
| 29 | +#define LED_2 LED2_R |
| 30 | +#define LED_3 LED2_G |
| 31 | +#define LED_4 LED2_B |
| 32 | + |
| 33 | +#define LED_5 LED2_DR |
| 34 | +#define LED_6 LED2_DG |
| 35 | +#define LED_7 LED2_DB |
| 36 | +#define LED_8 LED2_DW |
| 37 | + |
| 38 | +#define LEDS_ACTIVE_STATE 0 |
| 39 | + |
| 40 | +#define LEDS_LIST { LED_1, LED_2, LED_3, LED_4, LED_5, LED_6, LED_7, LED_8 } |
| 41 | + |
| 42 | +#define LEDS_INV_MASK LEDS_MASK |
| 43 | + |
| 44 | +#define BSP_LED_0 LED_1 |
| 45 | +#define BSP_LED_1 LED_2 |
| 46 | +#define BSP_LED_2 LED_3 |
| 47 | +#define BSP_LED_3 LED_4 |
| 48 | + |
| 49 | +#define BSP_LED_4 LED_5 |
| 50 | +#define BSP_LED_5 LED_6 |
| 51 | +#define BSP_LED_6 LED_7 |
| 52 | +#define BSP_LED_7 LED_8 |
| 53 | + |
| 54 | +// There is only one button for the application |
| 55 | +// as the second button is used for a RESET. |
| 56 | +#define BUTTONS_NUMBER 1 |
| 57 | + |
| 58 | +#define BUTTON_1 NRF_GPIO_PIN_MAP(1, 6) |
| 59 | +#define BUTTON_PULL NRF_GPIO_PIN_PULLUP |
| 60 | + |
| 61 | +#define BUTTONS_ACTIVE_STATE 0 |
| 62 | + |
| 63 | +#define BUTTONS_LIST { BUTTON_1 } |
| 64 | + |
| 65 | +#define BSP_BUTTON_0 BUTTON_1 |
| 66 | + |
| 67 | +#define BSP_SELF_PINRESET_PIN NRF_GPIO_PIN_MAP(0, 19) |
| 68 | + |
| 69 | +#define HWFC true |
| 70 | + |
| 71 | +#ifdef __cplusplus |
| 72 | +} |
| 73 | +#endif |
| 74 | + |
| 75 | +#endif // EFEKTA_DEV_BOARD_H |
0 commit comments