|
25 | 25 | #ifndef _ARCARDE_FEATHER_NRF52840_H |
26 | 26 | #define _ARCARDE_FEATHER_NRF52840_H |
27 | 27 |
|
28 | | -#define _PINNUM(port, pin) ((port)*32 + (pin)) |
29 | | - |
30 | 28 | /*------------------------------------------------------------------*/ |
31 | 29 | /* LED |
32 | 30 | *------------------------------------------------------------------*/ |
33 | | -#define LEDS_NUMBER 2 |
34 | | -#define LED_PRIMARY_PIN _PINNUM(1, 15) |
35 | | -#define LED_SECONDARY_PIN _PINNUM(1, 10) |
36 | | -#define LED_STATE_ON 1 |
| 31 | +#define LEDS_NUMBER 2 |
| 32 | +#define LED_PRIMARY_PIN PINNUM(1, 15) |
| 33 | +#define LED_SECONDARY_PIN PINNUM(1, 10) |
| 34 | +#define LED_STATE_ON 1 |
37 | 35 |
|
38 | | -#define LED_NEOPIXEL _PINNUM(0, 16) |
39 | | -#define NEOPIXELS_NUMBER 1 |
40 | | -#define BOARD_RGB_BRIGHTNESS 0x040404 |
| 36 | +#define LED_NEOPIXEL PINNUM(0, 16) |
| 37 | +#define NEOPIXELS_NUMBER 1 |
| 38 | +#define BOARD_RGB_BRIGHTNESS 0x040404 |
41 | 39 |
|
42 | 40 | /*------------------------------------------------------------------*/ |
43 | 41 | /* BUTTON |
44 | 42 | *------------------------------------------------------------------*/ |
45 | | -#define BUTTON_1 _PINNUM(1, 02) |
46 | | -#define BUTTON_2 _PINNUM(0, 10) |
47 | | -#define BUTTON_PULL NRF_GPIO_PIN_PULLUP |
| 43 | +#define BUTTON_DFU PINNUM(1, 02) |
| 44 | +#define BUTTON_DFU_OTA PINNUM(0, 10) |
| 45 | +#define BUTTON_PULL NRF_GPIO_PIN_PULLUP |
48 | 46 |
|
49 | 47 | //--------------------------------------------------------------------+ |
50 | 48 | // BLE OTA |
51 | 49 | //--------------------------------------------------------------------+ |
52 | | -#define BLEDIS_MANUFACTURER "Adafruit Industries" |
53 | | -#define BLEDIS_MODEL "Feather nRF52840 Express" |
| 50 | +#define BLEDIS_MANUFACTURER "Adafruit Industries" |
| 51 | +#define BLEDIS_MODEL "Feather nRF52840 Express" |
54 | 52 |
|
55 | 53 | //--------------------------------------------------------------------+ |
56 | 54 | // USB |
57 | 55 | //--------------------------------------------------------------------+ |
58 | | -#define USB_DESC_VID 0x239A |
59 | | -#define USB_DESC_UF2_PID 0x0029 |
60 | | -#define USB_DESC_CDC_ONLY_PID 0x002A |
| 56 | +#define USB_DESC_VID 0x239A |
| 57 | +#define USB_DESC_UF2_PID 0x0029 |
| 58 | +#define USB_DESC_CDC_ONLY_PID 0x002A |
61 | 59 |
|
62 | 60 | //------------- UF2 -------------// |
63 | | -#define UF2_PRODUCT_NAME "Adafruit Feather nRF52840 Express" |
64 | | -#define UF2_VOLUME_LABEL "ARCADE-N4" |
65 | | -#define UF2_BOARD_ID "nRF52840-Feather-revD" |
66 | | -#define UF2_INDEX_URL "https://www.adafruit.com/product/4062" |
| 61 | +#define UF2_PRODUCT_NAME "Adafruit Feather nRF52840 Express" |
| 62 | +#define UF2_VOLUME_LABEL "ARCADE-N4" |
| 63 | +#define UF2_BOARD_ID "nRF52840-Feather-revD" |
| 64 | +#define UF2_INDEX_URL "https://www.adafruit.com/product/4062" |
67 | 65 |
|
68 | 66 | #endif // _ARCARDE_FEATHER_NRF52840_H |
69 | | - |
0 commit comments