boards: arduino_zero: Convert to HWMv2

Port the board to HWMv2.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
Gerson Fernando Budke
2024-02-11 17:25:38 +01:00
committed by Carles Cufi
parent 1b2528df1b
commit 0409e51d3f
12 changed files with 16 additions and 21 deletions

View File

@@ -1,8 +1,6 @@
# Arduino Zero Board configuration
# Copyright (c) 2017 Google LLC.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_ARDUINO_ZERO
bool "Arduino Zero"
depends on SOC_PART_NUMBER_SAMD21G18A
select SOC_SAMD21G18A

View File

@@ -1,12 +1,12 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_SAMD21=y
CONFIG_SOC_PART_NUMBER_SAMD21G18A=y
CONFIG_BOARD_ARDUINO_ZERO=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y

View File

@@ -0,0 +1,5 @@
board:
name: arduino_zero
vendor: arduino
socs:
- name: samd21g18a

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@@ -58,7 +58,7 @@ features:
Other hardware features are not currently supported by Zephyr.
The default configuration can be found in the Kconfig
:zephyr_file:`boards/arm/arduino_zero/arduino_zero_defconfig`.
:zephyr_file:`boards/arduino/arduino_zero/arduino_zero_defconfig`.
Connections and IOs
===================

View File

@@ -1,8 +0,0 @@
# Arduino Zero board configuration
# Copyright (c) 2017 Google LLC.
# SPDX-License-Identifier: Apache-2.0
config BOARD
default "arduino_zero"
depends on BOARD_ARDUINO_ZERO