blinky works on mellifera
Some checks failed
Build / build (macos-12) (push) Waiting to run
Build / build (macos-14) (push) Waiting to run
Build / build (windows-2022) (push) Waiting to run
Build / build (ubuntu-22.04) (push) Failing after 26s
Documentation / build (push) Failing after 8s
Documentation / deploy (push) Has been skipped
Some checks failed
Build / build (macos-12) (push) Waiting to run
Build / build (macos-14) (push) Waiting to run
Build / build (windows-2022) (push) Waiting to run
Build / build (ubuntu-22.04) (push) Failing after 26s
Documentation / build (push) Failing after 8s
Documentation / deploy (push) Has been skipped
This commit is contained in:
@ -1,8 +1,12 @@
|
|||||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
if BOARD_MELLIFERA_REV1
|
||||||
|
|
||||||
config BOARD_ENABLE_DCDC
|
config BOARD_ENABLE_DCDC
|
||||||
bool "Enable DCDC mode"
|
bool "Enable DCDC mode"
|
||||||
select SOC_DCDC_NRF52X
|
select SOC_DCDC_NRF52X
|
||||||
default y
|
default y
|
||||||
depends on BOARD_CUSTOM_PLANK
|
depends on BOARD_MELLIFERA_REV1
|
||||||
|
|
||||||
|
endif # BOARD_MELLIFERA_REV1
|
@ -1,5 +1,5 @@
|
|||||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
config BOARD_CUSTOM_PLANK
|
config BOARD_MELLIFERA_REV1
|
||||||
select SOC_NRF52840_QIAA
|
select SOC_NRF52832_QFAA
|
@ -2,7 +2,7 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
board_runner_args(jlink "--device=nrf52" "--speed=4000")
|
board_runner_args(jlink "--device=nrf52" "--speed=4000")
|
||||||
board_runner_args(pyocd "--target=nrf52840" "--frequency=4000000")
|
board_runner_args(pyocd "--target=nrf52832" "--frequency=4000000")
|
||||||
|
|
||||||
set(OPENOCD_NRF5_SUBFAMILY "nrf52")
|
set(OPENOCD_NRF5_SUBFAMILY "nrf52")
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
board:
|
board:
|
||||||
name: custom_plank
|
name: mellifera_rev1
|
||||||
vendor: vendor
|
vendor: bh
|
||||||
socs:
|
socs:
|
||||||
- name: nrf52840
|
- name: nrf52832
|
43
boards/bh/mellifera_rev1/mellifera_rev1-pinctrl.dtsi
Normal file
43
boards/bh/mellifera_rev1/mellifera_rev1-pinctrl.dtsi
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2022 Nordic Semiconductor ASA
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
&pinctrl {
|
||||||
|
// uart0_default: uart0_default {
|
||||||
|
// group1 {
|
||||||
|
// psels = <NRF_PSEL(UART_TX, 0, 6)>,
|
||||||
|
// <NRF_PSEL(UART_RX, 0, 8)>,
|
||||||
|
// <NRF_PSEL(UART_RTS, 0, 5)>,
|
||||||
|
// <NRF_PSEL(UART_CTS, 0, 7)>;
|
||||||
|
// };
|
||||||
|
// };
|
||||||
|
|
||||||
|
// uart0_sleep: uart0_sleep {
|
||||||
|
// group1 {
|
||||||
|
// psels = <NRF_PSEL(UART_TX, 0, 6)>,
|
||||||
|
// <NRF_PSEL(UART_RX, 0, 8)>,
|
||||||
|
// <NRF_PSEL(UART_RTS, 0, 5)>,
|
||||||
|
// <NRF_PSEL(UART_CTS, 0, 7)>;
|
||||||
|
// low-power-enable;
|
||||||
|
// };
|
||||||
|
// };
|
||||||
|
|
||||||
|
|
||||||
|
uart0_default: uart0_default {
|
||||||
|
group1 {
|
||||||
|
psels = <NRF_PSEL(UART_TX, 0, 5)>,
|
||||||
|
<NRF_PSEL(UART_RX, 0, 11)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
uart0_sleep: uart0_sleep {
|
||||||
|
group1 {
|
||||||
|
psels = <NRF_PSEL(UART_TX, 0, 5)>,
|
||||||
|
<NRF_PSEL(UART_RX, 0, 11)>;
|
||||||
|
low-power-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
};
|
@ -4,12 +4,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#include <nordic/nrf52840_qiaa.dtsi>
|
#include <nordic/nrf52832_qfaa.dtsi>
|
||||||
#include "custom_plank-pinctrl.dtsi"
|
#include "mellifera_rev1-pinctrl.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Custom Plank Board";
|
model = "Mellifera rev1";
|
||||||
compatible = "vendor,custom-plank";
|
compatible = "bh,mellifera_rev1";
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
zephyr,console = &uart0;
|
zephyr,console = &uart0;
|
||||||
@ -19,12 +19,12 @@
|
|||||||
|
|
||||||
example_sensor: example-sensor {
|
example_sensor: example-sensor {
|
||||||
compatible = "zephyr,example-sensor";
|
compatible = "zephyr,example-sensor";
|
||||||
input-gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
input-gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
blink_led: blink-led {
|
blink_led: blink-led {
|
||||||
compatible = "blink-gpio-led";
|
compatible = "blink-gpio-led";
|
||||||
led-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
led-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
|
||||||
blink-period-ms = <1000>;
|
blink-period-ms = <1000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
40
boards/bh/mellifera_rev1/mellifera_rev1.yaml
Normal file
40
boards/bh/mellifera_rev1/mellifera_rev1.yaml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
identifier: mellifera_rev1
|
||||||
|
name: Mellifera-Rev1
|
||||||
|
# vendor: bh
|
||||||
|
# type: mcu
|
||||||
|
# arch: arm
|
||||||
|
# ram: 256
|
||||||
|
# flash: 1024
|
||||||
|
# toolchain:
|
||||||
|
# - zephyr
|
||||||
|
# - gnuarmemb
|
||||||
|
# - xtools
|
||||||
|
# supported:
|
||||||
|
# - gpio
|
||||||
|
|
||||||
|
# identifier: nrf52dk/nrf52832
|
||||||
|
# name: nRF52-DK-NRF52832
|
||||||
|
type: mcu
|
||||||
|
arch: arm
|
||||||
|
toolchain:
|
||||||
|
- zephyr
|
||||||
|
- gnuarmemb
|
||||||
|
- xtools
|
||||||
|
ram: 64
|
||||||
|
flash: 512
|
||||||
|
supported:
|
||||||
|
- adc
|
||||||
|
- arduino_gpio
|
||||||
|
- arduino_i2c
|
||||||
|
- arduino_spi
|
||||||
|
- gpio
|
||||||
|
- counter
|
||||||
|
- nvs
|
||||||
|
- i2c
|
||||||
|
- pwm
|
||||||
|
- spi
|
||||||
|
- watchdog
|
||||||
|
vendor: nordic
|
@ -1,26 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2022 Nordic Semiconductor ASA
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&pinctrl {
|
|
||||||
uart0_default: uart0_default {
|
|
||||||
group1 {
|
|
||||||
psels = <NRF_PSEL(UART_TX, 0, 6)>,
|
|
||||||
<NRF_PSEL(UART_RX, 0, 8)>,
|
|
||||||
<NRF_PSEL(UART_RTS, 0, 5)>,
|
|
||||||
<NRF_PSEL(UART_CTS, 0, 7)>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
uart0_sleep: uart0_sleep {
|
|
||||||
group1 {
|
|
||||||
psels = <NRF_PSEL(UART_TX, 0, 6)>,
|
|
||||||
<NRF_PSEL(UART_RX, 0, 8)>,
|
|
||||||
<NRF_PSEL(UART_RTS, 0, 5)>,
|
|
||||||
<NRF_PSEL(UART_CTS, 0, 7)>;
|
|
||||||
low-power-enable;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
16
boards/vendor/custom_plank/custom_plank.yaml
vendored
16
boards/vendor/custom_plank/custom_plank.yaml
vendored
@ -1,16 +0,0 @@
|
|||||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
identifier: custom_plank
|
|
||||||
name: Custom-Plank
|
|
||||||
vendor: vendor
|
|
||||||
type: mcu
|
|
||||||
arch: arm
|
|
||||||
ram: 256
|
|
||||||
flash: 1024
|
|
||||||
toolchain:
|
|
||||||
- zephyr
|
|
||||||
- gnuarmemb
|
|
||||||
- xtools
|
|
||||||
supported:
|
|
||||||
- gpio
|
|
Reference in New Issue
Block a user