Browse Source

platform Updates for NuttX 9.1.0-

sbg
David Sidrane 5 years ago committed by Daniel Agar
parent
commit
b32aab2d0f
  1. 2
      platforms/nuttx/src/bootloader/lib/systick.c
  2. 6
      platforms/nuttx/src/px4/common/board_crashdump.c
  3. 6
      platforms/nuttx/src/px4/common/px4_init.cpp
  4. 2
      platforms/nuttx/src/px4/common/tasks.cpp
  5. 2
      platforms/nuttx/src/px4/nxp/imxrt/board_critmon/board_critmon.c
  6. 2
      platforms/nuttx/src/px4/nxp/imxrt/board_reset/board_reset.cpp
  7. 2
      platforms/nuttx/src/px4/nxp/imxrt/version/board_identity.c
  8. 2
      platforms/nuttx/src/px4/nxp/imxrt/version/board_mcu_version.c
  9. 2
      platforms/nuttx/src/px4/nxp/kinetis/version/board_mcu_version.c
  10. 2
      platforms/nuttx/src/px4/nxp/s32k1xx/version/board_mcu_version.c
  11. 2
      platforms/nuttx/src/px4/stm/stm32_common/board_critmon/board_critmon.c
  12. 2
      platforms/nuttx/src/px4/stm/stm32_common/spi/spi.cpp
  13. 6
      platforms/nuttx/src/px4/stm/stm32f7/include/px4_arch/micro_hal.h
  14. 2
      platforms/nuttx/src/px4/stm/stm32h7/include/px4_arch/micro_hal.h
  15. 2
      src/lib/drivers/led/led.cpp

2
platforms/nuttx/src/bootloader/lib/systick.c

@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
*
****************************************************************************/
#include "up_arch.h"
#include "arm_arch.h"
#include "systick.h"
#include <nvic.h>

6
platforms/nuttx/src/px4/common/board_crashdump.c

@ -51,7 +51,7 @@ @@ -51,7 +51,7 @@
#include <nuttx/board.h>
#include "up_internal.h"
#include "arm_internal.h"
#include <systemlib/hardfault_log.h>
#include "nvic.h"
@ -377,14 +377,14 @@ __EXPORT void board_crashdump(uintptr_t currentsp, FAR void *tcb, FAR const uint @@ -377,14 +377,14 @@ __EXPORT void board_crashdump(uintptr_t currentsp, FAR void *tcb, FAR const uint
char *dead = "Memory wiped - dump not saved!";
while (*dead) {
up_lowputc(*dead++);
arm_lowputc(*dead++);
}
} else if (rv == -ENOSPC) {
/* hard fault again */
up_lowputc('!');
arm_lowputc('!');
}
#endif /* BOARD_CRASHDUMP_RESET_ONLY */

6
platforms/nuttx/src/px4/common/px4_init.cpp

@ -78,9 +78,9 @@ int px4_platform_init(void) @@ -78,9 +78,9 @@ int px4_platform_init(void)
(void)fs_dupfd2(0, 1);
(void)fs_dupfd2(0, 2);
(void)fs_fdopen(0, O_RDONLY, NULL);
(void)fs_fdopen(1, O_WROK | O_CREAT, NULL);
(void)fs_fdopen(2, O_WROK | O_CREAT, NULL);
(void)fs_fdopen(0, O_RDONLY, NULL, NULL);
(void)fs_fdopen(1, O_WROK | O_CREAT, NULL, NULL);
(void)fs_fdopen(2, O_WROK | O_CREAT, NULL, NULL);
} else {
/* We failed to open /dev/null OR for some reason, we opened

2
platforms/nuttx/src/px4/common/tasks.cpp

@ -89,7 +89,7 @@ int px4_task_delete(int pid) @@ -89,7 +89,7 @@ int px4_task_delete(int pid)
const char *px4_get_taskname(void)
{
#if CONFIG_TASK_NAME_SIZE > 0
FAR struct tcb_s *thisproc = sched_self();
FAR struct tcb_s *thisproc = nxsched_self();
return thisproc->name;
#else

2
platforms/nuttx/src/px4/nxp/imxrt/board_critmon/board_critmon.c

@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
#include <fixedmath.h>
#include "dwt.h"
#include "up_arch.h"
#include "arm_arch.h"
#include <nuttx/clock.h>

2
platforms/nuttx/src/px4/nxp/imxrt/board_reset/board_reset.cpp

@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
#include <px4_platform_common/px4_config.h>
#include <errno.h>
#include <nuttx/board.h>
#include <up_arch.h>
#include <arm_arch.h>
#include <hardware/imxrt_snvs.h>
#define PX4_IMXRT_RTC_REBOOT_REG 3 // Must be common with bootloader and:

2
platforms/nuttx/src/px4/nxp/imxrt/version/board_identity.c

@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <up_arch.h>
#include <arm_arch.h>
#include <hardware/imxrt_ocotp.h>
#define CPU_UUID_BYTE_FORMAT_ORDER {3, 2, 1, 0, 7, 6, 5, 4}

2
platforms/nuttx/src/px4/nxp/imxrt/version/board_mcu_version.c

@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
#include <chip.h>
#include <hardware/imxrt_usb_analog.h>
#include "up_arch.h"
#include "arm_arch.h"
#define DIGPROG_MINOR_SHIFT 0
#define DIGPROG_MINOR_MASK (0xff << DIGPROG_MINOR_SHIFT)

2
platforms/nuttx/src/px4/nxp/kinetis/version/board_mcu_version.c

@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/defines.h>
#include "up_arch.h"
#include "arm_arch.h"
#include "hardware/kinetis_sim.h"
#define CHIP_TAG "Kinetis K??"

2
platforms/nuttx/src/px4/nxp/s32k1xx/version/board_mcu_version.c

@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/defines.h>
#include "up_arch.h"
#include "arm_arch.h"
#include "hardware/s32k1xx_sim.h"
#define CHIP_TAG "S32K1XX"

2
platforms/nuttx/src/px4/stm/stm32_common/board_critmon/board_critmon.c

@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
#include <fixedmath.h>
#include "dwt.h"
#include "up_arch.h"
#include "arm_arch.h"
#include <nuttx/clock.h>

2
platforms/nuttx/src/px4/stm/stm32_common/spi/spi.cpp

@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include <up_arch.h>
#include <arm_arch.h>
#include <chip.h>
#include <stm32_gpio.h>

6
platforms/nuttx/src/px4/stm/stm32f7/include/px4_arch/micro_hal.h

@ -40,7 +40,7 @@ __BEGIN_DECLS @@ -40,7 +40,7 @@ __BEGIN_DECLS
#define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_STM32F7
#include <chip.h>
#include <hardware/stm32_flash.h>
#include <up_internal.h> //include up_systemreset() which is included on stm32.h
#include <arm_internal.h> //include up_systemreset() which is included on stm32.h
#include <stm32_bbsram.h>
#define PX4_BBSRAM_SIZE STM32F7_BBSRAM_SIZE
#define PX4_BBSRAM_GETDESC_IOCTL STM32F7_BBSRAM_GETDESC_IOCTL
@ -48,8 +48,8 @@ __BEGIN_DECLS @@ -48,8 +48,8 @@ __BEGIN_DECLS
#define PX4_NUMBER_I2C_BUSES STM32F7_NI2C
#define PX4_ARCH_DCACHE_LINESIZE ARMV7M_DCACHE_LINESIZE
void stm32_flash_lock(void);
void stm32_flash_unlock(void);
int stm32_flash_lock(void);
int stm32_flash_unlock(void);
int stm32_flash_writeprotect(size_t page, bool enabled);
__END_DECLS

2
platforms/nuttx/src/px4/stm/stm32h7/include/px4_arch/micro_hal.h

@ -53,7 +53,7 @@ __BEGIN_DECLS @@ -53,7 +53,7 @@ __BEGIN_DECLS
#include <chip.h>
#include <hardware/stm32_flash.h>
#include <up_internal.h> //include up_systemreset() which is included on stm32.h
#include <arm_internal.h> //include up_systemreset() which is included on stm32.h
#include <stm32_bbsram.h>
#define PX4_BBSRAM_SIZE STM32H7_BBSRAM_SIZE
#define PX4_BBSRAM_GETDESC_IOCTL STM32H7_BBSRAM_GETDESC_IOCTL

2
src/lib/drivers/led/led.cpp

@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
#include <stdio.h>
/*
* Ideally we'd be able to get these from up_internal.h,
* Ideally we'd be able to get these from arm_internal.h,
* but since we want to be able to disable the NuttX use
* of leds for system indication at will and there is no
* separate switch, we need to build independent of the

Loading…
Cancel
Save