File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
source/hic_hal/nordic/nrf52840 Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ common:
1010 - OS_CLOCK=64000000
1111 - __DAPLINK
1212 # # Uncomment one of the following defines to use alternate pinmap:
13+ # - MAKERDIARY_MDK_DONGLE
1314 # - NRF52840_DK
1415 # - SEEEDSTUDIO_XIAO_BLE
1516 # - SSCI_ISP1807
Original file line number Diff line number Diff line change @@ -114,6 +114,24 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_NRF52840);
114114#define UART_TX_PIN NRF_GPIO_PIN_MAP(0, 15) // UART From IMCU to target
115115#define UART_RX_PIN NRF_GPIO_PIN_MAP(0, 11) // UART From target to IMCU
116116
117+ #elif defined(MAKERDIARY_MDK_DONGLE )
118+
119+ #define RESET_BUTTON_PULL NRF_GPIO_PIN_PULLUP
120+ #define PIN_SWCLK NRF_GPIO_PIN_MAP(0, 5) // SWDCLK (Output)
121+ #define PIN_SWDIO NRF_GPIO_PIN_MAP(0, 6) // SWDIO (Input/Output)
122+ #define PIN_nRESET NRF_GPIO_PIN_MAP(0, 4) // nRESET Pin
123+ #undef LED_RUNNING
124+ #undef LED_CONNECTED
125+ #define LED_HID NRF_GPIO_PIN_MAP(0, 23) // HID LED (LED0: Red)
126+ #define LED_MSC NRF_GPIO_PIN_MAP(0, 24) // MSC LED (LED1: Greem)
127+ #define LED_CDC NRF_GPIO_PIN_MAP(0, 25) // CDC LED (LED2: Blue)
128+ #undef LED_PWR
129+ #define RESET_BUTTON NRF_GPIO_PIN_MAP(0, 18) // Reset button (SW_RESET)
130+ #define UART_TX_PIN NRF_GPIO_PIN_MAP(0, 20) // UART TX
131+ #define UART_RX_PIN NRF_GPIO_PIN_MAP(0, 21) // UART RX
132+ #define I2C_SCL_PIN NRF_GPIO_PIN_MAP(0, 7) // I2C
133+ #define I2C_SDA_PIN NRF_GPIO_PIN_MAP(0, 8) // I2C
134+
117135#else
118136
119137#define GPIO_LED_ACTIVE_STATE 0
You can’t perform that action at this time.
0 commit comments