|
39 | 39 | // This GPIO configuration is only valid for the nrf52840 HIC
|
40 | 40 | COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_NRF52840);
|
41 | 41 |
|
42 |
| -#if defined(NRF52840_DONGLE) |
43 |
| - |
44 |
| -#define GPIO_LED_ACTIVE_STATE 0 |
45 |
| -#define RESET_BUTTON_PULL NRF_GPIO_PIN_PULLUP |
46 |
| -#define PIN_SWCLK NRF_GPIO_PIN_MAP(0, 9) // SWDCLK (Output) |
47 |
| -#define PIN_SWDIO NRF_GPIO_PIN_MAP(0, 10) // SWDIO (Input/Output) |
48 |
| -#define PIN_nRESET NRF_GPIO_PIN_MAP(0, 24) // nRESET Pin |
49 |
| -#undef LED_RUNNING // Target Running LED (Output) |
50 |
| -#undef LED_CONNECTED // Connected LED (Output) |
51 |
| -#define LED_HID NRF_GPIO_PIN_MAP(0, 6) // HID LED |
52 |
| -#define LED_MSC NRF_GPIO_PIN_MAP(0, 8) // MSC LED |
53 |
| -#define LED_CDC NRF_GPIO_PIN_MAP(0, 12) // CDC LED |
54 |
| -#undef LED_PWR // POWER LED |
55 |
| -#define RESET_BUTTON NRF_GPIO_PIN_MAP(1, 6) // Reset button (SW_RESET) |
56 |
| -#define UART_TX_PIN NRF_GPIO_PIN_MAP(1, 10) // UART |
57 |
| -#define UART_RX_PIN NRF_GPIO_PIN_MAP(1, 13) // UART |
58 |
| -#define I2C_SCL_PIN NRF_GPIO_PIN_MAP(1, 25) // I2C |
59 |
| -#define I2C_SDA_PIN NRF_GPIO_PIN_MAP(0, 2) // I2C |
60 |
| - |
61 |
| -#elif defined(SEEEDSTUDIO_XIAO_BLE) |
| 42 | +#if defined(SEEEDSTUDIO_XIAO_BLE) |
62 | 43 |
|
63 | 44 | #define GPIO_LED_ACTIVE_STATE 0
|
64 | 45 | #define RESET_BUTTON_PULL NRF_GPIO_PIN_PULLUP
|
@@ -98,24 +79,22 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_NRF52840);
|
98 | 79 |
|
99 | 80 | #else
|
100 | 81 |
|
101 |
| -// Default PIN assignment (not finalized based on nRF52833) |
102 |
| -#define GPIO_LED_ACTIVE_STATE 1 |
| 82 | +#define GPIO_LED_ACTIVE_STATE 0 |
103 | 83 | #define RESET_BUTTON_PULL NRF_GPIO_PIN_PULLUP
|
104 |
| - |
105 |
| -#define PIN_SWCLK NRF_GPIO_PIN_MAP(0, 1) // SWDCLK (Output) |
106 |
| -#define PIN_SWDIO NRF_GPIO_PIN_MAP(0, 0) // SWDIO (Input/Output) |
107 |
| -#undef PIN_nRESET // nRESET Pin |
| 84 | +#define PIN_SWCLK NRF_GPIO_PIN_MAP(0, 13) // SWDCLK (Output) |
| 85 | +#define PIN_SWDIO NRF_GPIO_PIN_MAP(0, 17) // SWDIO (Input/Output) |
| 86 | +#define PIN_nRESET NRF_GPIO_PIN_MAP(0, 9) // nRESET Pin |
108 | 87 | #undef LED_RUNNING // Target Running LED (Output)
|
109 | 88 | #undef LED_CONNECTED // Connected LED (Output)
|
110 |
| -#define LED_HID NRF_GPIO_PIN_MAP(0, 15) // HID LED |
111 |
| -#define LED_MSC NRF_GPIO_PIN_MAP(0, 15) // MSC LED |
112 |
| -#define LED_CDC NRF_GPIO_PIN_MAP(0, 15) // CDC LED |
113 |
| -#define LED_PWR NRF_GPIO_PIN_MAP(0, 17) // POWER LED |
114 |
| -#define RESET_BUTTON NRF_GPIO_PIN_MAP(1, 9) // Reset button (SW_RESET) |
115 |
| -#define UART_TX_PIN NRF_GPIO_PIN_MAP(0, 2) // UART From IMCU to target |
116 |
| -#define UART_RX_PIN NRF_GPIO_PIN_MAP(0, 3) // UART From target to IMCU |
117 |
| -#define I2C_SCL_PIN NRF_GPIO_PIN_MAP(0, 29) // I2C SCL |
118 |
| -#define I2C_SDA_PIN NRF_GPIO_PIN_MAP(0, 28) // I2C SDA |
| 89 | +#define LED_HID NRF_GPIO_PIN_MAP(0, 6) // HID LED |
| 90 | +#define LED_MSC NRF_GPIO_PIN_MAP(0, 8) // MSC LED |
| 91 | +#define LED_CDC NRF_GPIO_PIN_MAP(0, 12) // CDC LED |
| 92 | +#undef LED_PWR // POWER LED |
| 93 | +#define RESET_BUTTON NRF_GPIO_PIN_MAP(1, 6) // Reset button (SW_RESET) |
| 94 | +#define UART_TX_PIN NRF_GPIO_PIN_MAP(0, 24) // UART TX |
| 95 | +#define UART_RX_PIN NRF_GPIO_PIN_MAP(1, 0) // UART RX |
| 96 | +#define I2C_SCL_PIN NRF_GPIO_PIN_MAP(1, 25) // I2C |
| 97 | +#define I2C_SDA_PIN NRF_GPIO_PIN_MAP(0, 2) // I2C |
119 | 98 |
|
120 | 99 | #endif
|
121 | 100 |
|
|
0 commit comments