mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
feat: configurable board pwm freq from Kconfig (#24787)
* feat: configurable board pwm freq from Kconfig * feat: add board_pwm_config to submenu * fix: define sequence correction * fix: revert Tools/simulation/gz * fix: track upstream gz * fix: track upstream mavlink * feat: adjustable pwm for multiple board types * feat: add conditional check for CONFIG_ for correct fallback * add: spacecraft board with correct BOARD_PWM_FREQ supporting 10Hz actuation rate * fix: set dependencies for submenu arch chips * fix: keep only upper arch level * fix: proper checking - still not showing up for board config * feat: add hidden kconfig for platforms * Merge Nuttx config into px4board Allows to expose nuttx into PX4 if needed * Kconfig: Include nuttx symbols in updateconfig Only if applicable i.e. defined in the kconfig * fix: merged config with previously generated boardconfig * doc: updated code comment --------- Co-authored-by: Daniel Agar <daniel@agar.ca> Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com>
This commit is contained in:
@@ -108,3 +108,11 @@ foreach(NameAndValue ${ConfigContents})
|
||||
set(${Name} ${Value} CACHE INTERNAL "NUTTX DEFCONFIG: ${Name}" FORCE)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Add CONFIG_ARCH_CHIP to boardconfig by merging
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_COMMAND} -E env ${COMMON_KCONFIG_ENV_SETTINGS}
|
||||
${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/kconfig/merge_config.py Kconfig ${BOARD_CONFIG} ${BOARD_CONFIG} ${PX4_BINARY_DIR}/NuttX/nuttx/.config
|
||||
WORKING_DIRECTORY ${PX4_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE DUMMY_RESULTS
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user