Bring mdk dongle code in line with current blinky testing

This commit is contained in:
KemoNine 2020-12-30 22:59:29 +00:00
parent 86ea1fa150
commit 4363aa7af7
7 changed files with 8 additions and 54 deletions

View File

@ -1,10 +1,3 @@
#
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
#
target_sources(app PRIVATE mdk_dongle_power_led.c)
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/../tools/uf2/utils/uf2conv.py COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/../tools/uf2/utils/uf2conv.py
-c -c

View File

@ -4,5 +4,5 @@
# #
config BOARD_NRF52840_MDK_DONGLE config BOARD_NRF52840_MDK_DONGLE
bool "NRF52840-MDK-dongle" bool "NRF52840-MDK-DONGLE"
depends on SOC_NRF52840_QIAA depends on SOC_NRF52840_QIAA

View File

@ -6,7 +6,7 @@
if BOARD_NRF52840_MDK_DONGLE if BOARD_NRF52840_MDK_DONGLE
config BOARD config BOARD
default "nrf52840_mdk_DONGLE" default "nrf52840_mdk_dongle"
if USB if USB

View File

@ -2,7 +2,3 @@
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# #
board_runner_args(nrfjprog "--nrf-family=NRF52" "--softreset")
include(${ZEPHYR_BASE}/boards/common/blackmagicprobe.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)

View File

@ -8,7 +8,7 @@
/ { / {
model = "nRF52840-MDK Dongle Dev Kit"; model = "nRF52840-MDK Dongle Dev Kit";
compatible = "nordic,pca10056-dk"; compatible = "makerdiary,nrf52840_mdk_dongle";
chosen { chosen {
zephyr,sram = &sram0; zephyr,sram = &sram0;
@ -78,10 +78,6 @@
status = "okay"; status = "okay";
}; };
&gpiote {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -90,40 +86,6 @@
status = "okay"; status = "okay";
}; };
&uart0 {
compatible = "nordic,nrf-uart";
current-speed = <115200>;
status = "okay";
tx-pin = <20>;
rx-pin = <19>;
rts-pin = <5>;
cts-pin = <7>;
};
&i2c0 {
compatible = "nordic,nrf-twi";
status = "okay";
sda-pin = <26>;
scl-pin = <27>;
};
&i2c1 {
compatible = "nordic,nrf-twi";
status = "okay";
sda-pin = <30>;
scl-pin = <31>;
};
&pwm0 {
status = "okay";
ch0-pin = <22>;
ch0-inverted;
ch1-pin = <23>;
ch1-inverted;
ch2-pin = <24>;
ch2-inverted;
};
&flash0 { &flash0 {
/* /*
* For more information, see: * For more information, see:

View File

@ -1,5 +1,5 @@
identifier: nrf52840_mdk identifier: nrf52840_mdk_dongle
name: nRF52840-MDK-dongle name: nRF52840-mdk-dongle
type: mcu type: mcu
arch: arm arch: arm
toolchain: toolchain:

View File

@ -12,3 +12,6 @@ CONFIG_ARM_MPU=y
# enable GPIO # enable GPIO
CONFIG_GPIO=y CONFIG_GPIO=y
# additional board options
CONFIG_GPIO_AS_PINRESET=n