|
26 | 26 | #ifndef _ARAMCON_BADGE_2019_H |
27 | 27 | #define _ARAMCON_BADGE_2019_H |
28 | 28 |
|
29 | | -#define _PINNUM(port, pin) ((port)*32 + (pin)) |
30 | | - |
31 | 29 | /*------------------------------------------------------------------*/ |
32 | 30 | /* LED |
33 | 31 | *------------------------------------------------------------------*/ |
34 | | -#define LEDS_NUMBER 1 |
35 | | -#define LED_PRIMARY_PIN _PINNUM(1, 11) // Red |
| 32 | +#define LEDS_NUMBER 1 |
| 33 | +#define LED_PRIMARY_PIN PINNUM(1, 11) // Red |
36 | 34 |
|
37 | | -#define LED_NEOPIXEL _PINNUM(0, 8) |
38 | | -#define NEOPIXELS_NUMBER 4 |
39 | | -#define BOARD_RGB_BRIGHTNESS 0x040404 |
| 35 | +#define LED_NEOPIXEL PINNUM(0, 8) |
| 36 | +#define NEOPIXELS_NUMBER 4 |
| 37 | +#define BOARD_RGB_BRIGHTNESS 0x040404 |
40 | 38 |
|
41 | 39 | /*------------------------------------------------------------------*/ |
42 | 40 | /* BUTTON |
43 | 41 | *------------------------------------------------------------------*/ |
44 | | -#define BUTTONS_NUMBER 2 |
45 | | -#define BUTTON_1 _PINNUM(0, 2) // left Button |
46 | | -#define BUTTON_2 _PINNUM(0, 29) // middle button |
47 | | -#define BUTTON_PULL NRF_GPIO_PIN_PULLUP |
| 42 | +#define BUTTON_DFU PINNUM(0, 2) // left Button |
| 43 | +#define BUTTON_DFU_OTA PINNUM(0, 29) // middle button |
| 44 | +#define BUTTON_PULL NRF_GPIO_PIN_PULLUP |
48 | 45 |
|
49 | 46 | //--------------------------------------------------------------------+ |
50 | 47 | // BLE OTA |
51 | 48 | //--------------------------------------------------------------------+ |
52 | | -#define BLEDIS_MANUFACTURER "ARAMCON Badge Team" |
53 | | -#define BLEDIS_MODEL "ARAMCON Badge 2019" |
| 49 | +#define BLEDIS_MANUFACTURER "ARAMCON Badge Team" |
| 50 | +#define BLEDIS_MODEL "ARAMCON Badge 2019" |
54 | 51 |
|
55 | 52 | //--------------------------------------------------------------------+ |
56 | 53 | // USB |
57 | 54 | //--------------------------------------------------------------------+ |
58 | | -#define USB_DESC_VID 0x239A |
59 | | -#define USB_DESC_UF2_PID 0x0079 |
60 | | -#define USB_DESC_CDC_ONLY_PID 0x0079 |
| 55 | +#define USB_DESC_VID 0x239A |
| 56 | +#define USB_DESC_UF2_PID 0x0079 |
| 57 | +#define USB_DESC_CDC_ONLY_PID 0x0079 |
61 | 58 |
|
62 | 59 | //------------- UF2 -------------// |
63 | | -#define UF2_PRODUCT_NAME "ARAMCON Badge 2019" |
64 | | -#define UF2_VOLUME_LABEL "ARAMBOOT" |
65 | | -#define UF2_BOARD_ID "nrf52840-ARAMCON-Badge-2019" |
66 | | -#define UF2_INDEX_URL "https://github.com/aramcon-badge" |
| 60 | +#define UF2_PRODUCT_NAME "ARAMCON Badge 2019" |
| 61 | +#define UF2_VOLUME_LABEL "ARAMBOOT" |
| 62 | +#define UF2_BOARD_ID "nrf52840-ARAMCON-Badge-2019" |
| 63 | +#define UF2_INDEX_URL "https://github.com/aramcon-badge" |
67 | 64 |
|
68 | 65 | #endif // _ARAMCON_BADGE_2019_H |
0 commit comments