Wire the shared ameba_gpio driver to the RTL8730E CA32 core. The CA32 replaces the vendor CA32 OS as BL33; the SDK startup that normally initialises GPIO_PORTx[] never runs under NuttX. The three GPIO port base addresses are patched at runtime inside rtl8730e_gpio_initialize() before any ROM GPIO function is called. GPIO_INTStatusGet and GPIO_INTStatusClearEdge are absent from the RTL8730E ROM and are provided as static inline helpers in the new ameba_gpio_chip.h. Key changes: - ameba_gpio_chip.h (new): chip parameters, split AMEBA_APBPERIPH_GPIO / AMEBA_APBPERIPH_GPIO_CLK bits, inline INTStatus helpers - ameba_gpio.c: add AMEBA_APBPERIPH_GPIO_CLK fallback macro so chips with separate periph/clock enable bits work without driver changes - Make.defs: enable ameba_gpio.c + rtl8730e_flash_stubs.c + lib_rom.a under CONFIG_AMEBA_GPIO; consolidate flash_stubs into GPIO||FLASH_FS - ameba_board.mk: remove duplicate lib_rom.a (Make.defs is authoritative) - rtl8730e_flash_stubs.c: make _strcmp weak; delegate Pinmux_Config to lib_rom.a's _Pinmux_Config so GPIO pad mux is configured correctly - Kconfig: source common/ameba/Kconfig to expose CONFIG_AMEBA_GPIO - dramboot.ld: include .sramdram.only.data in .data so GPIO_PORTx[] is copied to RAM by the normal arm_data_initialize() path - scripts/Make.defs: extend --no-warn-mismatch to GPIO and WiFi configs - rtl8730e_gpio.c (new): pin table (PB19 output /dev/gpio0, PB20 input /dev/gpio1, PB11 falling-edge interrupt /dev/gpio2) + GPIO_PORTx patch - configs/gpio/ (new): defconfig for GPIO example verification - nxstyle.c: add _Pinmux_ to mixed-case whitelist (ROM symbol) Hardware verified on RTL8730E CA32: - PB19 output write 0/1, readback matches - PB20 input reads PB19-driven level - PB11 falling-edge interrupt triggers correctly Signed-off-by: dechao_gong <dechao_gong@realsil.com.cn> Assisted-by: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .github | ||
| arch | ||
| audio | ||
| binfmt | ||
| boards | ||
| cmake | ||
| crypto | ||
| Documentation | ||
| drivers | ||
| dummy | ||
| fs | ||
| graphics | ||
| include | ||
| libs | ||
| mm | ||
| net | ||
| openamp | ||
| pass1 | ||
| sched | ||
| syscall | ||
| tools | ||
| video | ||
| wireless | ||
| .asf.yaml | ||
| .codespell-ignore-lines | ||
| .codespellrc | ||
| .editorconfig | ||
| .gitignore | ||
| .gitmessage | ||
| .pre-commit-config.yaml | ||
| .yamllint | ||
| AUTHORS | ||
| CMakeLists.txt | ||
| CONTRIBUTING.md | ||
| INVIOLABLES.md | ||
| Kconfig | ||
| LICENSE | ||
| Makefile | ||
| NOTICE | ||
| README.md | ||
| ReleaseNotes | ||
Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).
For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.
Getting Started
First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.
Documentation
You can find the current NuttX documentation on the Documentation Page.
Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.
The old NuttX documentation is still available in the Apache wiki.
Supported Boards
NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.
Contributing
If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.
License
The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.