-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
452 changed files
with
38,800 additions
and
2,342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 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 | ||
|
||
config STM32H7_DUAL_CORE | ||
default y | ||
|
||
endif # BOARD_ARDUINO_GIGA_R1_M7 || BOARD_ARDUINO_GIGA_R1_M4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include "arduino_r3_connector.dtsi" | ||
|
||
/ { | ||
leds { | ||
compatible = "gpio-leds"; | ||
red_led: led_0 { | ||
gpios = <&gpioi 12 GPIO_ACTIVE_LOW>; | ||
}; | ||
green_led: led_1 { | ||
gpios = <&gpioj 13 GPIO_ACTIVE_LOW>; | ||
}; | ||
blue_led: led_2 { | ||
gpios = <&gpioe 3 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
|
||
gpio_keys { | ||
compatible = "gpio-keys"; | ||
user_button: button_0 { | ||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
}; | ||
|
||
&rcc { | ||
d1cpre = <1>; | ||
hpre = <2>; | ||
d1ppre = <2>; | ||
d2ppre1 = <2>; | ||
d2ppre2 = <2>; | ||
d3ppre = <2>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
#include <st/h7/stm32h747Xi_m4.dtsi> | ||
#include <st/h7/stm32h747xihx-pinctrl.dtsi> | ||
#include "arduino_giga_r1.dtsi" | ||
|
||
/ { | ||
model = "Arduino GIGA R1 WiFi Board (M4)"; | ||
compatible = "arduino,giga-r1"; | ||
|
||
chosen { | ||
zephyr,console = &usart2; | ||
zephyr,shell-uart = &usart2; | ||
zephyr,sram = &sram1; | ||
zephyr,flash = &flash1; | ||
}; | ||
|
||
aliases { | ||
led0 = &blue_led; | ||
}; | ||
}; | ||
|
||
&rcc { | ||
clock-frequency = <DT_FREQ_M(240)>; | ||
}; | ||
|
||
&usart2 { | ||
status = "okay"; | ||
pinctrl-0 = <&usart2_tx_pd5 &usart2_rx_pd6>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
identifier: arduino_giga_r1_m4 | ||
name: Arduino GIGA R1 WiFi (M4) | ||
type: mcu | ||
arch: arm | ||
toolchain: | ||
- zephyr | ||
- gnuarmemb | ||
- xtools | ||
ram: 288 | ||
flash: 1024 | ||
supported: | ||
- arduino_gpio | ||
- gpio | ||
testing: | ||
ignore_tags: | ||
- mpu | ||
- nfc | ||
- net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2023 Google LLC | ||
# 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 | ||
CONFIG_GPIO=y | ||
|
||
# Clock configuration | ||
CONFIG_CLOCK_CONTROL=y | ||
|
||
# Enable MPU | ||
CONFIG_ARM_MPU=y | ||
|
||
# Enable HW stack protection | ||
CONFIG_HW_STACK_PROTECTION=y | ||
|
||
# Enable uart driver | ||
CONFIG_SERIAL=y | ||
|
||
# Console | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
|
||
# Enable pin controller | ||
CONFIG_PINCTRL=y |
Oops, something went wrong.