Map the NuttX PM states onto the RP2350 low-power modes: - PM_STANDBY is the RP2350 SLEEP state: a WFI with the clocks of the blocks that have no driver in the configuration gated (SLEEP_EN0/1). - PM_SLEEP is the DORMANT state: clk_sys moves to the crystal oscillator, the PLLs and then the oscillator stop, and the clock tree is restored after the wake, as pico-extras does. Only the GPIO dormant-wake detector can wake the chip, so PM_SLEEP gives the standby state when no wake GPIO is configured. The wake GPIO also raises a one-shot interrupt, so that the core leaves its WFI and restores the PLLs at once. The time of day is taken back from the always-on timer after the wake. The dormant state stops the UARTs. A PM_STANDBY wakelock (pm_staytimeout()) is held for RP23XX_PM_WAKE_HOLD_MS after a dormant wake and after each character a UART receives. The serial driver refuses PM_SLEEP in its prepare callback while a UART transmits. A dormant chip does not answer SWD, so the pm configurations use PM_GOVERNOR_EXPLICIT_RELAX to stay out of it for a time after boot. With RP23XX_PM_QUIESCE_PADS, arm_pminitialize() also isolates the unused pads and holds the blocks with no driver in reset. A floating bank 0 input settles near 2.2V (erratum RP2350-E9) and its input buffer then draws a static current in every state. Also select ARCH_HAVE_PM, and fix the LED PM callbacks of three boards, which used BOARD_LED where the boards define BOARD_LED1. They did not build with CONFIG_PM. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.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 | ||
| .mcp.json | ||
| .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.