mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Upgrade NuttX to 8.2
Nuttx with PX4 contrib of bbsram fix Nuttx 8.31+ with BBSRAM disable dcache Nuttx 8.2-
This commit is contained in:
@@ -52,7 +52,7 @@ list(APPEND nuttx_libs
|
||||
nuttx_arch
|
||||
nuttx_binfmt
|
||||
nuttx_c
|
||||
nuttx_configs
|
||||
nuttx_boards
|
||||
nuttx_xx
|
||||
nuttx_drivers
|
||||
nuttx_fs
|
||||
|
||||
@@ -112,9 +112,9 @@ add_custom_target(nuttx_copy_and_apps_target
|
||||
if(EXISTS ${NUTTX_CONFIG_DIR}/Kconfig)
|
||||
add_custom_command(
|
||||
OUTPUT
|
||||
${NUTTX_DIR}/configs/dummy/Kconfig
|
||||
${NUTTX_DIR}/boards/dummy/Kconfig
|
||||
${CMAKE_CURRENT_BINARY_DIR}/nuttx_config_kconfig.stamp
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${NUTTX_CONFIG_DIR}/Kconfig ${NUTTX_DIR}/configs/dummy/Kconfig
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${NUTTX_CONFIG_DIR}/Kconfig ${NUTTX_DIR}/boards/dummy/Kconfig
|
||||
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/nuttx_config_kconfig.stamp
|
||||
DEPENDS
|
||||
nuttx_copy_and_apps_target
|
||||
@@ -122,9 +122,9 @@ if(EXISTS ${NUTTX_CONFIG_DIR}/Kconfig)
|
||||
else()
|
||||
add_custom_command(
|
||||
OUTPUT
|
||||
${NUTTX_DIR}/configs/dummy/Kconfig
|
||||
${NUTTX_DIR}/boards/dummy/Kconfig
|
||||
${CMAKE_CURRENT_BINARY_DIR}/nuttx_config_kconfig.stamp
|
||||
COMMAND ${CMAKE_COMMAND} -E touch ${NUTTX_DIR}/configs/dummy/Kconfig
|
||||
COMMAND ${CMAKE_COMMAND} -E touch ${NUTTX_DIR}/boards/dummy/Kconfig
|
||||
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/nuttx_config_kconfig.stamp
|
||||
DEPENDS
|
||||
nuttx_copy_and_apps_target
|
||||
@@ -133,7 +133,7 @@ endif()
|
||||
|
||||
add_custom_target(nuttx_config_kconfig_target
|
||||
DEPENDS
|
||||
${NUTTX_DIR}/configs/dummy/Kconfig
|
||||
${NUTTX_DIR}/boards/dummy/Kconfig
|
||||
${CMAKE_CURRENT_BINARY_DIR}/nuttx_config_kconfig.stamp
|
||||
)
|
||||
|
||||
@@ -357,7 +357,7 @@ endfunction()
|
||||
# add_nuttx_dir(NAME DIRECTORY KERNEL EXTRA)
|
||||
add_nuttx_dir(arch arch/arm/src y -D__KERNEL__)
|
||||
add_nuttx_dir(binfmt binfmt y -D__KERNEL__)
|
||||
add_nuttx_dir(configs configs y -D__KERNEL__)
|
||||
add_nuttx_dir(boards boards y -D__KERNEL__)
|
||||
add_nuttx_dir(drivers drivers y -D__KERNEL__)
|
||||
add_nuttx_dir(fs fs y -D__KERNEL__)
|
||||
add_nuttx_dir(sched sched y -D__KERNEL__)
|
||||
|
||||
Submodule platforms/nuttx/NuttX/apps updated: 13eeff0ec3...91b6ad6a0d
Submodule platforms/nuttx/NuttX/nuttx updated: 427238133b...a48028b924
@@ -94,9 +94,9 @@ set(NUTTX_DEFCONFIG ${NUTTX_CONFIG_DIR}/${NUTTX_CONFIG}/defconfig CACHE FILEPATH
|
||||
|
||||
# If the board provides a Kconfig Use it or create an empty one
|
||||
if(EXISTS ${NUTTX_CONFIG_DIR}/Kconfig)
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${NUTTX_CONFIG_DIR}/Kconfig ${NUTTX_DIR}/configs/dummy/Kconfig)
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${NUTTX_CONFIG_DIR}/Kconfig ${NUTTX_DIR}/boards/dummy/Kconfig)
|
||||
else()
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E touch ${NUTTX_DIR}/configs/dummy/Kconfig)
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E touch ${NUTTX_DIR}/boards/dummy/Kconfig)
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
|
||||
@@ -42,6 +42,39 @@
|
||||
#include <nuttx/board.h>
|
||||
|
||||
|
||||
#ifdef CONFIG_BOARDCTL_RESET
|
||||
|
||||
/****************************************************************************
|
||||
* Public functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_reset
|
||||
*
|
||||
* Description:
|
||||
* Reset board. Support for this function is required by board-level
|
||||
* logic if CONFIG_BOARDCTL_RESET is selected.
|
||||
*
|
||||
* Input Parameters:
|
||||
* status - Status information provided with the reset event. This
|
||||
* meaning of this status information is board-specific. If not
|
||||
* used by a board, the value zero may be provided in calls to
|
||||
* board_reset().
|
||||
*
|
||||
* Returned Value:
|
||||
* If this function returns, then it was not possible to power-off the
|
||||
* board due to some constraints. The return value int this case is a
|
||||
* board-specific reason for the failure to shutdown.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int board_reset(int status)
|
||||
{
|
||||
up_systemreset();
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_BOARDCTL_RESET */
|
||||
|
||||
|
||||
int board_set_bootload_mode(board_reset_e mode)
|
||||
|
||||
@@ -43,6 +43,39 @@
|
||||
#include <stm32_rtc.h>
|
||||
#include <nuttx/board.h>
|
||||
|
||||
#ifdef CONFIG_BOARDCTL_RESET
|
||||
|
||||
/****************************************************************************
|
||||
* Public functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_reset
|
||||
*
|
||||
* Description:
|
||||
* Reset board. Support for this function is required by board-level
|
||||
* logic if CONFIG_BOARDCTL_RESET is selected.
|
||||
*
|
||||
* Input Parameters:
|
||||
* status - Status information provided with the reset event. This
|
||||
* meaning of this status information is board-specific. If not
|
||||
* used by a board, the value zero may be provided in calls to
|
||||
* board_reset().
|
||||
*
|
||||
* Returned Value:
|
||||
* If this function returns, then it was not possible to power-off the
|
||||
* board due to some constraints. The return value int this case is a
|
||||
* board-specific reason for the failure to shutdown.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int board_reset(int status)
|
||||
{
|
||||
up_systemreset();
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_BOARDCTL_RESET */
|
||||
|
||||
int board_set_bootload_mode(board_reset_e mode)
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ __BEGIN_DECLS
|
||||
|
||||
#define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_STM32F7
|
||||
#include <chip.h>
|
||||
#include <chip/stm32_flash.h>
|
||||
#include <hardware/stm32_flash.h>
|
||||
#include <up_internal.h> //include up_systemreset() which is included on stm32.h
|
||||
#include <stm32_bbsram.h>
|
||||
#define PX4_BBSRAM_SIZE STM32F7_BBSRAM_SIZE
|
||||
|
||||
Reference in New Issue
Block a user