forked fromzephyrproject-rtos/arduino-core-zephyr
Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork35
board: add support for the Arduino Nano Matter#255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
silabs-bozont wants to merge6 commits intoarduino:mainChoose a base branch fromsilabs-bozont:main
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes fromall commits
Commits
Show all changes
6 commits Select commitHold shift + click to select a range
e99ef81 nano_matter: add initial support for the Arduino Nano Matter
silabs-bozont67fbf19 nano_matter: add PWM support
silabs-bozonte1bb38c nano_matter: add SPI support
silabs-bozont05191bd nano_matter: add static linking support
silabs-bozont49cab77 nano_matter: add ArduinoBLE support
silabs-bozont812b4e8 loader: return if sketch_buf could not be allocated
silabs-bozontFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
66 changes: 66 additions & 0 deletionsboards.txt
This file contains hidden or 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
9 changes: 8 additions & 1 deletioncores/arduino/threads.cpp
This file contains hidden or 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
1 change: 1 addition & 0 deletionsloader/main.c
This file contains hidden or 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
29 changes: 28 additions & 1 deletionplatform.txt
This file contains hidden or 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
8 changes: 7 additions & 1 deletionprogrammers.txt
This file contains hidden or 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
37 changes: 37 additions & 0 deletionsvariants/arduino_nano_matter_mgm240sd22vna/arduino_nano_matter_mgm240sd22vna.conf
This file contains hidden or 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 @@ | ||
| CONFIG_MAIN_STACK_SIZE=16000 | ||
| CONFIG_HEAP_MEM_POOL_SIZE=112000 | ||
| CONFIG_LLEXT_HEAP_SIZE=64 | ||
| CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 | ||
| CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=-1 | ||
| CONFIG_FPU=y | ||
| CONFIG_I2C=y | ||
| CONFIG_SPI=y | ||
| CONFIG_PWM=y | ||
| CONFIG_BT=y | ||
| CONFIG_BT_HCI=y | ||
| CONFIG_BT_HCI_RAW=y | ||
| CONFIG_BT_HCI_RAW_CMD_EXT=y | ||
| CONFIG_BT_MAX_CONN=4 | ||
| CONFIG_BT_SILABS_EFR32_HCI_VS=y | ||
| CONFIG_BT_SILABS_EFR32_LINK_LAYER_STACK_SIZE=4096 | ||
| CONFIG_BT_CTLR_PRIVACY=n | ||
| CONFIG_BT_RX_STACK_SIZE=4096 | ||
| CONFIG_BT_HCI_TX_STACK_SIZE=1024 | ||
| CONFIG_MBEDTLS=y | ||
| CONFIG_TLS_CREDENTIALS=y | ||
| CONFIG_CURRENT_THREAD_USE_TLS=n | ||
| CONFIG_NETWORKING=y | ||
| CONFIG_ASSERT=y | ||
| CONFIG_STACK_USAGE=n | ||
| CONFIG_STACK_SENTINEL=n | ||
| CONFIG_INIT_STACKS=n | ||
| CONFIG_THREAD_NAME=n | ||
| CONFIG_THREAD_STACK_INFO=n | ||
| CONFIG_STACK_CANARIES=n | ||
| CONFIG_THREAD_ANALYZER=n | ||
| CONFIG_SYS_HEAP_RUNTIME_STATS=n | ||
| # CONFIG_LOG_DEFAULT_LEVEL=3 |
123 changes: 123 additions & 0 deletionsvariants/arduino_nano_matter_mgm240sd22vna/arduino_nano_matter_mgm240sd22vna.overlay
This file contains hidden or 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,123 @@ | ||
| &flash0 { | ||
| partitions { | ||
| compatible = "fixed-partitions"; | ||
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
| /* Arduino user sketch partition */ | ||
| user_sketch: partition@C4000 { | ||
| reg = <0x000C4000 0x000B8000>; | ||
| label = "user"; | ||
| }; | ||
| }; | ||
| }; | ||
| / { | ||
| zephyr,user { | ||
| digital-pin-gpios = <&gpioa 4 0>, /* D0 */ | ||
| <&gpioa 5 0>, /* D1 */ | ||
| <&gpioa 3 0>, /* D2 */ | ||
| <&gpioc 6 0>, /* D3 */ | ||
| <&gpioc 7 0>, /* D4 */ | ||
| <&gpioc 8 0>, /* D5 */ | ||
| <&gpioc 9 0>, /* D6 */ | ||
| <&gpiod 2 0>, /* D7 */ | ||
| <&gpiod 3 0>, /* D8 */ | ||
| <&gpiod 4 0>, /* D9 */ | ||
| <&gpiod 5 0>, /* D10 */ | ||
| <&gpioa 9 0>, /* D11 */ | ||
| <&gpioa 8 0>, /* D12 */ | ||
| <&gpiob 4 0>, /* D13 */ | ||
| <&gpiob 0 0>, /* A0 */ | ||
| <&gpiob 2 0>, /* A1 */ | ||
| <&gpiob 5 0>, /* A2 */ | ||
| <&gpioc 0 0>, /* A3 */ | ||
| <&gpioa 6 0>, /* A4 */ | ||
| <&gpioa 7 0>, /* A5 */ | ||
| <&gpiob 1 0>, /* A6 */ | ||
| <&gpiob 3 0>, /* A7 */ | ||
| <&gpioc 1 0>, /* 22 LED R */ | ||
| <&gpioc 2 0>, /* 23 LED G */ | ||
| <&gpioc 3 0>, /* 24 LED B */ | ||
| <&gpioa 0 0>, /* 25 Button */ | ||
| <&gpioc 4 0>, /* 26 Serial Tx */ | ||
| <&gpioc 5 0>; /* 27 Serial Rx */ | ||
| builtin-led-gpios = <&gpioc 1 GPIO_ACTIVE_LOW>, /* 22 LED R */ | ||
| <&gpioc 2 GPIO_ACTIVE_LOW>, /* 23 LED G */ | ||
| <&gpioc 3 GPIO_ACTIVE_LOW>; /* 24 LED B */ | ||
| pwm-pin-gpios =<&gpiob 0 0>, /* A0 */ | ||
| <&gpiob 2 0>, /* A1 */ | ||
| <&gpiob 5 0>; /* A2 */ | ||
| builtin-led-gpios = <&gpioc 1 0>; | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Almost duplicate from line 46 🙂 | ||
| pwms = <&timer0_pwm 0 255 PWM_POLARITY_INVERTED>, | ||
| <&timer0_pwm 1 255 PWM_POLARITY_INVERTED>, | ||
| <&timer0_pwm 2 255 PWM_POLARITY_INVERTED>; | ||
| serials = <&usart0>; | ||
| i2cs = <&i2c0>; | ||
| spis = <&eusart1>; | ||
| }; | ||
| }; | ||
| &i2c0 { | ||
| pinctrl-0 = <&i2c0_default>; | ||
| pinctrl-names = "default"; | ||
| clock-frequency = <I2C_BITRATE_STANDARD>; | ||
| status = "okay"; | ||
| }; | ||
| &pinctrl { | ||
| eusart1_default: eusart1_default { | ||
| group0 { | ||
| pins = <EUSART1_TX_PA9>, <EUSART1_SCLK_PB4>; | ||
| drive-push-pull; | ||
| output-high; | ||
| }; | ||
| group1 { | ||
| pins = <EUSART1_RX_PA8>; | ||
| input-enable; | ||
| silabs,input-filter; | ||
| }; | ||
| }; | ||
| }; | ||
| &eusart1 { | ||
| compatible = "silabs,eusart-spi"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| clock-frequency = <4000000>; | ||
| pinctrl-0 = <&eusart1_default>; | ||
| pinctrl-names = "default"; | ||
| status = "okay"; | ||
| cs-gpios = <&gpiod 5 GPIO_ACTIVE_LOW>; | ||
| }; | ||
| &timer0 { | ||
| status = "okay"; | ||
| timer0_pwm: pwm { | ||
| pinctrl-0 = <&timer0_default>; | ||
| pinctrl-names = "default"; | ||
| status = "okay"; | ||
| }; | ||
| }; | ||
| &pinctrl { | ||
| timer0_default: timer0_default { | ||
| group0 { | ||
| pins = <TIMER0_CC0_PB0>, <TIMER0_CC1_PB2>, <TIMER0_CC2_PB5>; | ||
| drive-push-pull; | ||
| output-high; | ||
| }; | ||
| }; | ||
| }; | ||
| &sysrtc0 { | ||
| status = "okay"; | ||
| }; | ||
15 changes: 15 additions & 0 deletionsvariants/arduino_nano_matter_mgm240sd22vna/variant.h
This file contains hidden or 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,15 @@ | ||
| #pragma once | ||
| #define MOSI 11 | ||
| #define MISO 12 | ||
| #define SCK 13 | ||
| #define SS 10 | ||
| #define SDA 4 | ||
| #define SCL 5 | ||
| #define LED_BUILTIN_1 23 | ||
| #define LED_BUILTIN_2 24 | ||
| #define LED_BUILTIN_ACTIVE (LOW) | ||
| #define LED_BUILTIN_INACTIVE (!LED_BUILTIN_ACTIVE) | ||
| #define BTN_BUILTIN 25 |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.