Browse Source
Port the board to HWMv2. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>pull/69687/head
18 changed files with 37 additions and 54 deletions
@ -0,0 +1,6 @@ |
|||||||
|
# Copyright 2023 Google LLC |
||||||
|
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
config BOARD_ARDUINO_GIGA_R1 |
||||||
|
select SOC_STM32H747XX_M7 if BOARD_ARDUINO_GIGA_R1_STM32H747XX_M7 |
||||||
|
select SOC_STM32H747XX_M4 if BOARD_ARDUINO_GIGA_R1_STM32H747XX_M4 |
@ -0,0 +1,18 @@ |
|||||||
|
# Copyright 2023 Google LLC |
||||||
|
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
if BOARD_ARDUINO_GIGA_R1 |
||||||
|
|
||||||
|
if BT |
||||||
|
|
||||||
|
choice AIROC_PART |
||||||
|
default CYW4343W |
||||||
|
endchoice |
||||||
|
|
||||||
|
choice CYW4343W_MODULE |
||||||
|
default CYW4343W_MURATA_1DX |
||||||
|
endchoice |
||||||
|
|
||||||
|
endif # BT |
||||||
|
|
||||||
|
endif # BOARD_ARDUINO_GIGA_R1 |
@ -1,4 +1,4 @@ |
|||||||
identifier: arduino_giga_r1_m4 |
identifier: arduino_giga_r1/stm32h747xx/m4 |
||||||
name: Arduino GIGA R1 WiFi (M4) |
name: Arduino GIGA R1 WiFi (M4) |
||||||
type: mcu |
type: mcu |
||||||
arch: arm |
arch: arm |
@ -1,12 +1,6 @@ |
|||||||
# Copyright 2023 Google LLC |
# Copyright 2023 Google LLC |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
CONFIG_SOC_SERIES_STM32H7X=y |
|
||||||
CONFIG_SOC_STM32H747XX=y |
|
||||||
|
|
||||||
# Board config should be specified since there are 2 possible targets |
|
||||||
CONFIG_BOARD_ARDUINO_GIGA_R1_M4=y |
|
||||||
|
|
||||||
# Enable GPIO |
# Enable GPIO |
||||||
CONFIG_GPIO=y |
CONFIG_GPIO=y |
||||||
|
|
@ -1,4 +1,4 @@ |
|||||||
identifier: arduino_giga_r1_m7 |
identifier: arduino_giga_r1/stm32h747xx/m7 |
||||||
name: Arduino GIGA R1 WiFi (M7) |
name: Arduino GIGA R1 WiFi (M7) |
||||||
type: mcu |
type: mcu |
||||||
arch: arm |
arch: arm |
@ -1,12 +1,6 @@ |
|||||||
# Copyright 2023 Google LLC |
# Copyright 2023 Google LLC |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
CONFIG_SOC_SERIES_STM32H7X=y |
|
||||||
CONFIG_SOC_STM32H747XX=y |
|
||||||
|
|
||||||
# Board config should be specified since there are 2 possible targets |
|
||||||
CONFIG_BOARD_ARDUINO_GIGA_R1_M7=y |
|
||||||
|
|
||||||
# Disable the internal SMPS regulator |
# Disable the internal SMPS regulator |
||||||
CONFIG_POWER_SUPPLY_DIRECT_SMPS=n |
CONFIG_POWER_SUPPLY_DIRECT_SMPS=n |
||||||
|
|
@ -1,10 +1,10 @@ |
|||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
if(CONFIG_BOARD_ARDUINO_GIGA_R1_M7) |
if(CONFIG_BOARD_ARDUINO_GIGA_R1_STM32H747XX_M7) |
||||||
board_runner_args(jlink "--device=STM32H747XI_M7" "--speed=4000") |
board_runner_args(jlink "--device=STM32H747XI_M7" "--speed=4000") |
||||||
board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_arduino_giga_r1_m7.cfg") |
board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_arduino_giga_r1_m7.cfg") |
||||||
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0) |
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0) |
||||||
elseif(CONFIG_BOARD_ARDUINO_GIGA_R1_M4) |
elseif(CONFIG_BOARD_ARDUINO_GIGA_R1_STM32H747XX_M4) |
||||||
board_runner_args(jlink "--device=STM32H747XI_M4" "--speed=4000") |
board_runner_args(jlink "--device=STM32H747XI_M4" "--speed=4000") |
||||||
board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_arduino_giga_r1_m4.cfg") |
board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_arduino_giga_r1_m4.cfg") |
||||||
board_runner_args(openocd --target-handle=_CHIPNAME.cpu1) |
board_runner_args(openocd --target-handle=_CHIPNAME.cpu1) |
@ -0,0 +1,5 @@ |
|||||||
|
board: |
||||||
|
name: arduino_giga_r1 |
||||||
|
vendor: arduino |
||||||
|
socs: |
||||||
|
- name: stm32h747xx |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
@ -1,12 +0,0 @@ |
|||||||
# Copyright 2023 Google LLC |
|
||||||
# SPDX-License-Identifier: Apache-2.0 |
|
||||||
|
|
||||||
config BOARD_ARDUINO_GIGA_R1_M7 |
|
||||||
bool "Arduino GIGA R1 WiFi Board (M7)" |
|
||||||
depends on SOC_STM32H747XX |
|
||||||
select CPU_CORTEX_M7 |
|
||||||
|
|
||||||
config BOARD_ARDUINO_GIGA_R1_M4 |
|
||||||
bool "Arduino GIGA R1 WiFi Board (M4)" |
|
||||||
depends on SOC_STM32H747XX |
|
||||||
select CPU_CORTEX_M4 |
|
@ -1,22 +0,0 @@ |
|||||||
# Copyright 2023 Google LLC |
|
||||||
# SPDX-License-Identifier: Apache-2.0 |
|
||||||
|
|
||||||
if BOARD_ARDUINO_GIGA_R1_M7 || BOARD_ARDUINO_GIGA_R1_M4 |
|
||||||
|
|
||||||
config BOARD |
|
||||||
default "arduino_giga_r1_m7" if BOARD_ARDUINO_GIGA_R1_M7 |
|
||||||
default "arduino_giga_r1_m4" if BOARD_ARDUINO_GIGA_R1_M4 |
|
||||||
|
|
||||||
if BT |
|
||||||
|
|
||||||
choice AIROC_PART |
|
||||||
default CYW4343W |
|
||||||
endchoice |
|
||||||
|
|
||||||
choice CYW4343W_MODULE |
|
||||||
default CYW4343W_MURATA_1DX |
|
||||||
endchoice |
|
||||||
|
|
||||||
endif # BT |
|
||||||
|
|
||||||
endif # BOARD_ARDUINO_GIGA_R1_M7 || BOARD_ARDUINO_GIGA_R1_M4 |
|
Loading…
Reference in new issue