-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: add support for esp32s3 on the ping pong sample
Signed-off-by: Felipe Neves <[email protected]>
- Loading branch information
Showing
8 changed files
with
3,426 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CONFIG_IPM=y | ||
CONFIG_MAIN_STACK_SIZE=2048 | ||
|
||
CONFIG_CONSOLE=y | ||
CONFIG_SERIAL=y | ||
CONFIG_UART_CONSOLE=y | ||
CONFIG_GPIO=y | ||
CONFIG_CLOCK_CONTROL=y |
60 changes: 60 additions & 0 deletions
60
samples/ping-pong/rx/boards/esp32s3_devkitm_appcpu.overlay
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,60 @@ | ||
/* | ||
* Copyright (c) 2024 Felipe Neves | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
/ { | ||
chosen { | ||
zephyr,console = &uart1; | ||
zephyr,shell-uart = &uart1; | ||
}; | ||
|
||
aliases { | ||
led0 = &red_led_0; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
red_led_0: led_0 { | ||
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; | ||
label = "User LD0"; | ||
}; | ||
}; | ||
}; | ||
|
||
&shm0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
zipm_pool: zipm_pool@3fcbd400 { | ||
compatible = "zipm,node-pool"; | ||
block-size = <32>; | ||
nodes-quantity = <32>; | ||
reg = <0x3fcbd400>; | ||
}; | ||
|
||
zipm_doorbell_queue: zipm_doorbell_queue@3fcbd800 { | ||
compatible = "zipm,shared-queue"; | ||
reg = <0x3fcbd800>; | ||
}; | ||
|
||
zipm_rx_queue: zipm_rx_queue@3fcbdc00 { | ||
compatible = "zipm,shared-queue"; | ||
reg = <0x3fcbdc00>; | ||
}; | ||
|
||
zipm_device0: zipm_device { | ||
compatible = "zipm,message-device"; | ||
status = "okay"; | ||
node-pool = <&zipm_pool>; | ||
shared-queues = <&zipm_doorbell_queue &zipm_rx_queue>; | ||
ipc = <&mbox0>; | ||
tx-id = <0>; | ||
rx-id = <1>; | ||
should-init; | ||
}; | ||
}; | ||
|
||
&mbox0 { | ||
status = "okay"; | ||
}; |
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
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,4 @@ | ||
CONFIG_IPM=n | ||
CONFIG_SHELL=y | ||
CONFIG_PRINTK=y | ||
CONFIG_LOG=y |
56 changes: 56 additions & 0 deletions
56
samples/ping-pong/tx/boards/esp32s3_devkitm_procpu.overlay
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,56 @@ | ||
/* | ||
* Copyright (c) 2024 Felipe Neves | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
led0 = &red_led_0; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
red_led_0: led_0 { | ||
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | ||
label = "User LD0"; | ||
}; | ||
}; | ||
}; | ||
|
||
&shm0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
zipm_pool: zipm_pool@3fcbd400 { | ||
compatible = "zipm,node-pool"; | ||
block-size = <32>; | ||
nodes-quantity = <32>; | ||
reg = <0x3fcbd400>; | ||
}; | ||
|
||
zipm_doorbell_queue: zipm_doorbell_queue@3fcbd800 { | ||
compatible = "zipm,shared-queue"; | ||
reg = <0x3fcbd800>; | ||
}; | ||
|
||
zipm_rx_queue: zipm_rx_queue@3fcbdc00 { | ||
compatible = "zipm,shared-queue"; | ||
reg = <0x3fcbdc00>; | ||
}; | ||
|
||
zipm_device0: zipm_device { | ||
compatible = "zipm,message-device"; | ||
status = "okay"; | ||
node-pool = <&zipm_pool>; | ||
shared-queues = <&zipm_doorbell_queue &zipm_rx_queue>; | ||
ipc = <&mbox0>; | ||
tx-id = <1>; | ||
rx-id = <0>; | ||
should-init; | ||
}; | ||
}; | ||
|
||
&mbox0 { | ||
status = "okay"; | ||
}; |
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
Large diffs are not rendered by default.
Oops, something went wrong.