01_SDK/nimble/config/soc_config.h
@@ -88,12 +88,12 @@
/* Enable Flash LDO or not */
#ifndef CONFIG_FLASH_LDO_EN
#define CONFIG_FLASH_LDO_EN                                 1
#define CONFIG_FLASH_LDO_EN                                 0
#endif
/* Remap Vector Table to SRAM */
#ifndef CONFIG_VECTOR_REMAP_TO_RAM
#define CONFIG_VECTOR_REMAP_TO_RAM                          1
#define CONFIG_VECTOR_REMAP_TO_RAM                          0
#endif
/* Enable Auto Temperature Detecting Flow */
@@ -146,4 +146,53 @@
#define CONFIG_HCLK_OPTIMIZE_EN                             0
#endif
/* Flash Map Configurations */
#if defined(IP_107x)
// Declare Flash INFO Area
#define CONFIG_FLASH_PARTITION_CHIP_INFO_ADDR               0x7F000
#define CONFIG_FLASH_PARTITION_CHIP_INFO_SIZE               0x1000
#elif defined(IP_101x)
// Declare Flash INFO Area
#define CONFIG_FLASH_PARTITION_CHIP_INFO_ADDR               0x3F000
#define CONFIG_FLASH_PARTITION_CHIP_INFO_SIZE               0x1000
#else
// Reserved for later use
#endif /* IP_107x or IP_101x */
// Indicate if current project/image is bootable application:
// neither bootloader nor unbootable app.
#if (CONFIG_FLASH_PARTITION_APP_ADDR == 0 && CONFIG_FLASH_PARTITION_APP_SIZE != 0)
#define IS_BOOTABLE_APP                                     1
#else
#define IS_BOOTABLE_APP                                     0
#endif
#if CONFIG_APP_USE_IMAGE_HEADER
#ifndef CONFIG_APP_IMG_VER_MAJOR
#define CONFIG_APP_IMG_VER_MAJOR                            0
#endif
#ifndef CONFIG_APP_IMG_VER_MINOR
#define CONFIG_APP_IMG_VER_MINOR                            0
#endif
#ifndef CONFIG_APP_IMG_VER_REVISION
#define CONFIG_APP_IMG_VER_REVISION                         0
#endif
#ifndef CONFIG_APP_IMG_VER_BUILD
#define CONFIG_APP_IMG_VER_BUILD                            0
#endif
#endif /* CONFIG_APP_USE_IMAGE_HEADER */
#if CONFIG_FIRMWARE_ENCRYPTION
#define ENCRYPT_SECTION __attribute__((section(".enc.section"))) __attribute__((noinline)) __attribute__((used))
#else
#define ENCRYPT_SECTION
#endif /* CONFIG_FIRMWARE_ENCRYPTION */
#endif /* End of _SOC_CONFIG_H_ */