mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-21 23:10:35 +08:00
Get us a bit closer to having c++ static constructors working.
This commit is contained in:
@@ -87,6 +87,15 @@ SECTIONS
|
||||
__errno = get_errno_ptr;
|
||||
} > flash
|
||||
|
||||
/*
|
||||
* Init functions (static constructors and the like)
|
||||
*/
|
||||
.init_section : {
|
||||
_sinit = ABSOLUTE(.);
|
||||
*(.init_array .init_array.*)
|
||||
_einit = ABSOLUTE(.);
|
||||
} > flash
|
||||
|
||||
/*
|
||||
* Construction data for parameters.
|
||||
*/
|
||||
|
||||
@@ -179,7 +179,7 @@ CONFIG_STM32_I2C1=y
|
||||
CONFIG_STM32_I2C2=y
|
||||
CONFIG_STM32_I2C3=y
|
||||
CONFIG_STM32_CAN1=n
|
||||
CONFIG_STM32_CAN2=y
|
||||
CONFIG_STM32_CAN2=n
|
||||
CONFIG_STM32_DAC=n
|
||||
CONFIG_STM32_PWR=y
|
||||
# APB2:
|
||||
@@ -542,7 +542,7 @@ CONFIG_DEBUG_I2C=n
|
||||
CONFIG_DEBUG_INPUT=n
|
||||
|
||||
CONFIG_HAVE_CXX=y
|
||||
CONFIG_HAVE_CXXINITIALIZE=n
|
||||
CONFIG_HAVE_CXXINITIALIZE=y
|
||||
CONFIG_MM_REGIONS=2
|
||||
CONFIG_ARCH_LOWPUTC=y
|
||||
CONFIG_MSEC_PER_TICK=1
|
||||
|
||||
Reference in New Issue
Block a user