mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
PX4 System: Upstream NuttX defconfig changes
was:CONFIG_STM32_STM32F40XX is:CONFIG_STM32_STM32F4XXX
This commit is contained in:
committed by
Daniel Agar
parent
724e4f9e39
commit
cb21aced5e
@@ -48,7 +48,7 @@ __BEGIN_DECLS
|
|||||||
# if defined(CONFIG_ARCH_CHIP_STM32)
|
# if defined(CONFIG_ARCH_CHIP_STM32)
|
||||||
# include <stm32.h>
|
# include <stm32.h>
|
||||||
# define PX4_FLASH_BASE STM32_FLASH_BASE
|
# define PX4_FLASH_BASE STM32_FLASH_BASE
|
||||||
# if defined(CONFIG_STM32_STM32F40XX)
|
# if defined(CONFIG_STM32_STM32F4XXX)
|
||||||
# include <stm32_bbsram.h>
|
# include <stm32_bbsram.h>
|
||||||
# define PX4_BBSRAM_SIZE STM32_BBSRAM_SIZE
|
# define PX4_BBSRAM_SIZE STM32_BBSRAM_SIZE
|
||||||
# define PX4_BBSRAM_GETDESC_IOCTL STM32_BBSRAM_GETDESC_IOCTL
|
# define PX4_BBSRAM_GETDESC_IOCTL STM32_BBSRAM_GETDESC_IOCTL
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
__EXPORT int bl_update_main(int argc, char *argv[]);
|
__EXPORT int bl_update_main(int argc, char *argv[]);
|
||||||
|
|
||||||
#if defined (CONFIG_STM32_STM32F40XX)
|
#if defined (CONFIG_STM32_STM32F4XXX)
|
||||||
static int setopt(void);
|
static int setopt(void);
|
||||||
|
|
||||||
static void print_usage(const char *reason)
|
static void print_usage(const char *reason)
|
||||||
@@ -81,7 +81,7 @@ static void print_usage(const char *reason)
|
|||||||
int
|
int
|
||||||
bl_update_main(int argc, char *argv[])
|
bl_update_main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
#if !defined (CONFIG_STM32_STM32F40XX)
|
#if !defined (CONFIG_STM32_STM32F4XXX)
|
||||||
PX4_ERR("Not supported on this HW");
|
PX4_ERR("Not supported on this HW");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -243,4 +243,4 @@ setopt(void)
|
|||||||
PX4_ERR("option bits setting failed; readback 0x%04x", *optcr);
|
PX4_ERR("option bits setting failed; readback 0x%04x", *optcr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif // CONFIG_STM32_STM32F40XX
|
#endif // CONFIG_STM32_STM32F4XXX
|
||||||
|
|||||||
Reference in New Issue
Block a user