Updated BlueMacro840 board config files.

This commit is contained in:
310weber 2021-03-01 16:51:25 +00:00
parent c12853b6c5
commit 7f166e0fc4
8 changed files with 33 additions and 23 deletions

View file

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

View file

@ -1,8 +1,8 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
config BOARD_ENABLE_DCDC
bool "Enable DCDC mode"
select SOC_DCDC_NRF52X
default y
depends on BOARD_BLUEMICRO840_V1
depends on BOARD_BLUEMACRO840_V1

View file

@ -1,8 +1,8 @@
# BlueMicro840 board configuration
# BlueMacro840 board configuration
# Copyright (c) 2020 Pete Johanson, Derek Schmell
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
config BOARD_BLUEMICRO840_V1
bool "BlueMicro840_V1"
config BOARD_BLUEMACRO840_V1
bool "BlueMacro840_V1"
depends on SOC_NRF52840_QIAA

View file

@ -1,12 +1,12 @@
# BlueMicro840 board configuration
# BlueMacro840 board configuration
# Copyright (c) 2020 Pete Johanson, Derek Schmell
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
if BOARD_BLUEMICRO840_V1
if BOARD_BLUEMACRO840_V1
config BOARD
default "bluemicro840_v1"
default "bluemacro840_v1"
if USB
@ -30,4 +30,4 @@ config ZMK_USB
config ZMK_BATTERY_VOLTAGE_DIVIDER
default y
endif # BOARD_BLUEMICRO840_V1
endif # BOARD_BLUEMACRO840_V1

View file

@ -1,16 +1,15 @@
/*
* Copyright (c) 2020 Pete Johanson, Derek Schmell
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
/dts-v1/;
#include <nordic/nrf52840_qiaa.dtsi>
#include "arduino_pro_micro_pins.dtsi"
/ {
model = "BlueMicro840_V1";
compatible = "bluemicro840,v1";
model = "BlueMacro840_V1";
compatible = "bluemacro840,v1";
chosen {
zephyr,code-partition = &code_partition;
@ -21,9 +20,14 @@
leds {
compatible = "gpio-leds";
blue_led: led_0 {
gpios = <&gpio0 42 GPIO_ACTIVE_HIGH>;
gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
label = "Blue LED";
};
red_led: led_1 {
gpios = <&gpio1 04 GPIO_ACTIVE_HIGH>;
label = "Red LED";
};
};
ext-power {
@ -60,14 +64,14 @@
&i2c0 {
compatible = "nordic,nrf-twi";
sda-pin = <15>;
scl-pin = <17>;
sda-pin = <30>;
scl-pin = <2>;
};
&uart0 {
compatible = "nordic,nrf-uarte";
tx-pin = <6>;
rx-pin = <8>;
tx-pin = <28>;
rx-pin = <45>;
};
&usbd {

View file

@ -1,5 +1,5 @@
identifier: bluemicro840_v1
name: BlueMicro840_V1
identifier: bluemacro840_v1
name: BlueMacro840_V1
type: mcu
arch: arm
toolchain:

View file

@ -1,8 +1,9 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_BLUEMICRO840_V1=y
CONFIG_BOARD_BLUEMACRO840_V1=y
# Enable MPU
CONFIG_ARM_MPU=y

View file

@ -1,5 +1,7 @@
# Copyright (c) 2020 The ZMK Contributors
# 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)