You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by li...@apache.org on 2026/04/02 23:21:43 UTC
(nuttx) branch master updated (27214321bea -> 1b12ab52656)
This is an automated email from the ASF dual-hosted git repository.
linguini pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
from 27214321bea net/can,udp: fix conn unlock position in callback
new 04a2bb39a90 boards\risc-v\esp32c3: CMake added esp32-c3-zero board
new 1b12ab52656 docs: add CMake for Waveshare ESP32-C3-Zero board
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
Documentation/platforms/risc-v/esp32c3/boards/esp32-c3-zero/index.rst | 2 +-
.../spifi => boards/risc-v/esp32c3/esp32-c3-zero}/CMakeLists.txt | 2 +-
.../risc-v/esp32c3/{esp32c3-devkit => esp32-c3-zero}/src/CMakeLists.txt | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
copy {arch/arm/src/lpc43xx/spifi => boards/risc-v/esp32c3/esp32-c3-zero}/CMakeLists.txt (95%)
copy boards/risc-v/esp32c3/{esp32c3-devkit => esp32-c3-zero}/src/CMakeLists.txt (97%)
(nuttx) 02/02: docs: add CMake for Waveshare ESP32-C3-Zero board
Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
linguini pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 1b12ab52656e36fcebb949151ecde0afadc7cec9
Author: simbit18 <10...@users.noreply.github.com>
AuthorDate: Thu Apr 2 18:02:35 2026 +0200
docs: add CMake for Waveshare ESP32-C3-Zero board
Update Build System for Waveshare ESP32-C3-Zero board
Signed-off-by: simbit18 <si...@gmail.com>
---
Documentation/platforms/risc-v/esp32c3/boards/esp32-c3-zero/index.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/platforms/risc-v/esp32c3/boards/esp32-c3-zero/index.rst b/Documentation/platforms/risc-v/esp32c3/boards/esp32-c3-zero/index.rst
index 6f3905877bd..a551fe04840 100644
--- a/Documentation/platforms/risc-v/esp32c3/boards/esp32-c3-zero/index.rst
+++ b/Documentation/platforms/risc-v/esp32c3/boards/esp32-c3-zero/index.rst
@@ -129,7 +129,7 @@ where <config_name> is the name of board configuration you want to use, i.e.: ns
* - Make
- Yes
* - CMake
- - No
+ - Yes
.. code:: console
(nuttx) 01/02: boards\risc-v\esp32c3: CMake added esp32-c3-zero board
Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
linguini pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 04a2bb39a9026435cff4e46484709d6c2fda7cf0
Author: simbit18 <10...@users.noreply.github.com>
AuthorDate: Thu Apr 2 17:54:14 2026 +0200
boards\risc-v\esp32c3: CMake added esp32-c3-zero board
CMake added Waveshare ESP32-C3-Zero board
Signed-off-by: simbit18 <si...@gmail.com>
---
boards/risc-v/esp32c3/esp32-c3-zero/CMakeLists.txt | 23 ++++++++
.../esp32c3/esp32-c3-zero/src/CMakeLists.txt | 66 ++++++++++++++++++++++
2 files changed, 89 insertions(+)
diff --git a/boards/risc-v/esp32c3/esp32-c3-zero/CMakeLists.txt b/boards/risc-v/esp32c3/esp32-c3-zero/CMakeLists.txt
new file mode 100644
index 00000000000..e99a743cf71
--- /dev/null
+++ b/boards/risc-v/esp32c3/esp32-c3-zero/CMakeLists.txt
@@ -0,0 +1,23 @@
+# ##############################################################################
+# boards/risc-v/esp32c3/esp32-c3-zero/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership. The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# ##############################################################################
+
+add_subdirectory(src)
diff --git a/boards/risc-v/esp32c3/esp32-c3-zero/src/CMakeLists.txt b/boards/risc-v/esp32c3/esp32-c3-zero/src/CMakeLists.txt
new file mode 100644
index 00000000000..1e196ca2831
--- /dev/null
+++ b/boards/risc-v/esp32c3/esp32-c3-zero/src/CMakeLists.txt
@@ -0,0 +1,66 @@
+# ##############################################################################
+# boards/risc-v/esp32c3/esp32-c3-zero/src/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership. The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# ##############################################################################
+
+set(SRCS esp32c3_boot.c esp32c3_bringup.c)
+
+if(CONFIG_BOARDCTL)
+ list(APPEND SRCS esp32c3_appinit.c)
+
+ if(CONFIG_BOARDCTL_RESET)
+ list(APPEND SRCS esp32c3_reset.c)
+ endif()
+endif()
+
+if(CONFIG_DEV_GPIO)
+ list(APPEND SRCS esp32c3_gpio.c)
+endif()
+
+if(CONFIG_ARCH_BUTTONS)
+ list(APPEND SRCS esp32c3_buttons.c)
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+# ##############################################################################
+# Linker scripts
+# ##############################################################################
+
+# Get the chip series (remove quotes)
+string(REPLACE "\"" "" CHIP_SERIES "${CONFIG_ESPRESSIF_CHIP_SERIES}")
+
+# Board common scripts directory
+set(BOARD_COMMON_DIR "${NUTTX_BOARD_DIR}/../common")
+
+# Always include aliases and flat memory linker scripts
+set(LDSCRIPTS "${BOARD_COMMON_DIR}/scripts/${CHIP_SERIES}_aliases.ld"
+ "${BOARD_COMMON_DIR}/scripts/${CHIP_SERIES}_flat_memory.ld")
+
+# Select sections linker script based on boot configuration
+if(CONFIG_ESPRESSIF_BOOTLOADER_MCUBOOT OR CONFIG_ESPRESSIF_SIMPLE_BOOT)
+ list(APPEND LDSCRIPTS
+ "${BOARD_COMMON_DIR}/scripts/${CHIP_SERIES}_sections.ld")
+else()
+ list(APPEND LDSCRIPTS
+ "${BOARD_COMMON_DIR}/scripts/${CHIP_SERIES}_legacy_sections.ld")
+endif()
+
+set_property(GLOBAL PROPERTY LD_SCRIPT ${LDSCRIPTS})