Skip to content

Commit

Permalink
boards: update nRF51dk board to board scheme v2.
Browse files Browse the repository at this point in the history
This commit updates nrf51dk_nrf51422 to use board scheme v2, and
thus becomes board nrf51dk with the SoC nrf51422.

It also uses the new SoC approach, and thereby ensuring that the right
SoC is always used, and cannot accidentially be changed by the user.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
  • Loading branch information
tejlmand committed Dec 20, 2023
1 parent e54b95d commit 5f87b4f
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 15 deletions.
8 changes: 0 additions & 8 deletions boards/arm/nrf51dk_nrf51422/Kconfig.board

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

if BOARD_NRF51DK_NRF51422

config BOARD
default "nrf51dk_nrf51422"

config BT_CTLR
default BT

Expand Down
9 changes: 9 additions & 0 deletions boards/v2/nordic_nrf/nrf51dk/Kconfig.nrf51dk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2023 Nordic Semiconductor ASA

# SPDX-License-Identifier: Apache-2.0

config BOARD_NRF51DK
bool
default y
select SOC_SERIES_NRF51X
select SOC_NRF51822_QFAC
File renamed without changes.
5 changes: 5 additions & 0 deletions boards/v2/nordic_nrf/nrf51dk/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: nrf51dk
vendor: Nordic Semiconductor
socs:
- name: nrf51422
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_NRF51X=y
CONFIG_SOC_NRF51822_QFAC=y
CONFIG_BOARD_NRF51DK_NRF51422=y

# enable GPIO
CONFIG_GPIO=y

Expand Down

0 comments on commit 5f87b4f

Please sign in to comment.