nuttx/arch/arm/src/nrf52
Alan Carvalho de Assis 87260499e1
Some checks are pending
MemBrowse Memory Report / changes-filter (push) Waiting to run
MemBrowse Memory Report / load-targets (push) Waiting to run
MemBrowse Memory Report / identical (push) Blocked by required conditions
MemBrowse Memory Report / analyze (push) Blocked by required conditions
cmake: Use NUTTX(_DIR/_BIN_DIR) instead CMAKE(_SRC_DIR/_BIN_DIR)
This change fixes NuttX’s CMake support when NuttX is embedded
in another project via add_subdirectory(). CMake’s CMAKE_SOURCE_DIR
and CMAKE_BINARY_DIR refer to the outermost project, causing NuttX
to access its .config, generated files, host tools, and build artifacts
in the parent project’s directories. The fix introduces NUTTX_DIR and
NUTTX_BINARY_DIR, based on CMAKE_CURRENT_SOURCE_DIR and
CMAKE_CURRENT_BINARY_DIR, and consistently uses them for NuttX
self-references while preserving existing standalone builds. It fixes
the Kconfig initialization failure reported in #19697 and allows an
embedded sim:nsh build to configure, build, and boot successfully.
The change affects only the CMake build system (not Make or Kconfig
defaults), requires the corresponding nuttx-apps change, and does not
extend add_subdirectory() support to cross-compiled non-sim boards due
to CMake’s toolchain-file limitation.

Fixes #19697.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>
2026-08-09 11:13:08 -03:00
..
hardware arch/nrf52|nrf53: add qencoder support 2026-04-12 19:41:52 -04:00
sdc
.gitignore
chip.h
CMakeLists.txt cmake: Use NUTTX(_DIR/_BIN_DIR) instead CMAKE(_SRC_DIR/_BIN_DIR) 2026-08-09 11:13:08 -03:00
Kconfig arch/nrf52: add SAADC continuous sampling mode 2026-08-08 14:56:52 -03:00
Make.defs arch/nrf52|nrf53: add qencoder support 2026-04-12 19:41:52 -04:00
nrf52_adc.c arch/nrf52: add SAADC continuous sampling mode 2026-08-08 14:56:52 -03:00
nrf52_adc.h
nrf52_allocateheap.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_clockconfig.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_clockconfig.h
nrf52_config.h
nrf52_flash.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_gpio.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_gpio.h
nrf52_gpiote.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_gpiote.h
nrf52_i2c.c arch/nrf52/nrf53/nrf91: allow zero-length I2C transfers 2026-08-06 20:33:59 +08:00
nrf52_i2c.h
nrf52_i2c_bitbang.c
nrf52_i2c_bitbang.h
nrf52_idle.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_ieee802154.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_ieee802154_priv.h
nrf52_ieee802154_radio.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_ieee802154_radio.h
nrf52_ieee802154_rtc.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_ieee802154_rtc.h
nrf52_ieee802154_tim.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_ieee802154_tim.h
nrf52_ieee802154_trace.c
nrf52_ieee802154_trace.h
nrf52_irq.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_irq.h
nrf52_lowputc.c
nrf52_lowputc.h
nrf52_nvmc.c
nrf52_nvmc.h
nrf52_pminitialize.c
nrf52_ppi.c
nrf52_ppi.h
nrf52_pwm.c arch: remove PULSECOUNT references from PWM drivers 2026-05-25 14:33:11 +02:00
nrf52_pwm.h
nrf52_qdec.c arch/nrf52|nrf53: add qencoder support 2026-04-12 19:41:52 -04:00
nrf52_qdec.h arch/nrf52|nrf53: add qencoder support 2026-04-12 19:41:52 -04:00
nrf52_qspi.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_qspi.h
nrf52_radio.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_radio.h
nrf52_radio_ieee802154.h
nrf52_rng.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_rtc.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_rtc.h
nrf52_sdc.c arch/arm/nrf52,nrf53: don't pass HCI messages under the lock 2026-07-27 10:16:22 +08:00
nrf52_sdc.h
nrf52_serial.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_serial.h
nrf52_spi.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_spi.h
nrf52_start.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_start.h
nrf52_systick.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_tickless_rtc.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_tim.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_tim.h
nrf52_tim_lowerhalf.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nrf52_tim_lowerhalf.h
nrf52_uid.c
nrf52_uid.h
nrf52_usbd.c arch/nrf5x: fix USBD data OUT packet loss when no read request is queued 2026-08-07 18:50:36 +08:00
nrf52_usbd.h
nrf52_utils.c
nrf52_wdt.c
nrf52_wdt.h
nrf52_wdt_lowerhalf.c !nuttx: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-19 16:21:28 +08:00
nrf52_wdt_lowerhalf.h
nrf52832_errdata.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00