//*** <<< Use Configuration Wizard in Context Menu >>> *** #ifndef SAMPLE_CONFIG_H #define SAMPLE_CONFIG_H // APP and MCU Config /* System main frequency, Unit M */ // System Clock <48=> 48M <32=> 32M #define CONFIG_SYSTEM_CLOCK 32 // System main frequency, Unit M /* Peripherals frequency divide, It can only be even numbers */ // Periph Divide <0=> 0 <2=> 2 <4=> 4 <6=> 6 <8=> 8 <10=> 10 #define CONFIG_PERIPH_DIVIDE 2 // Peripherals frequency divide, It can only be even numbers /* Enable DCDC Mode */ // Enable DCDC (if disabled means LDO mode) #define CONFIG_SOC_DCDC_PAN1070 1 // Enable DCDC (if disabled means LDO mode) /* FreeRTOS Heap Usage Print*/ // FreeRTOS Heap Usage Print #define CONFIG_FREERTOS_HEAP_PRINT 0 // FreeRTOS Heap Usage Print /*vector table remap to ram */ // Vector Remap to Ram #define CONFIG_VECTOR_REMAP_TO_RAM 1 // vector remap to ram /*system watch dog enable */ // System Watch Dog Enable #define CONFIG_SYSTEM_WATCH_DOG_ENABLE 0 // System Watch Dog Enable /* App Use Ram Function */ // RAM Function #define CONFIG_RAM_FUNCTION 1 // adding parts of ram function can improve running ability #if CONFIG_RAM_FUNCTION #define CONFIG_RAM_CODE __attribute__((section(".ramfunc"))) #else #define CONFIG_RAM_CODE #endif /* Log enable */ // Log Enable #define CONFIG_LOG_ENABLE 1 // Log enable /* Flash LDO Config */ // Flash LDO Config // Flash LDO Enable #define CONFIG_FLASH_LDO_EN 1 // Flash LDO enable // Flash LDO Voltage Select // default:None => Flash LDO Voltage from FT Info // <0=>1.5V // <1=>1.6V // <2=>1.7V // <3=>1.8V // <4=>1.9V // <5=>2.0V // <6=>2.1V // <7=>2.2V // <8=>None #define CONFIG_FLASH_LDO_VOL 8 // // // BLE Stack Config /* user chip unique mac address */ // Use Chip unique Mac Address #define CONFIG_USER_CHIP_MAC_ADDR 1 // Use Chip unique Mac Address /* Select a low-speed clock source */ // Low-Speed Clock <0=> RCL <1=> XTL <2=> ACT32K #define CONFIG_LOW_SPEED_CLOCK_SRC 2 // Select a low-speed clock source /* CENTRAL maximum number of states supported */ // BT_MAX_NUM_OF_CENTRAL #define CONFIG_BT_MAX_NUM_OF_CENTRAL 1 // CENTRAL maximum number of states supported /* PERIPHERAL maximum number of states supported */ // BT_MAX_NUM_OF_PERIPHERAL #define CONFIG_BT_MAX_NUM_OF_PERIPHERAL 1 // PERIPHERAL maximum number of states supported /* Select BLE TX POWER */ // TX Power <0=> 0dBm <1=> 1dBm <2=> 2dBm <3=> 3dBm <4=> 4dBm <5=> 5dBm <6=> 6dBm <7=> 7dBm <8=> 8dBm <9=> 9dBm #define CONFIG_BT_CTLR_TX_POWER_DFT 0 // Select BLE TX POWER /* Force manual calibration of the RCL clock */ // Force Calib RCL #define CONFIG_FORCE_CALIB_RCL_CLK 0 // Force manual calibration of the RCL clock, production chips do not need to be turned on /* BT controller Memory Pool usage print*/ // BT controller Memory Pool usage print #define CONFIG_CNTRL_MEM_POOL_PRINT 0 // BT controller Memory Pool usage print /* BT AGC Init Mode*/ // BT AGC Init Mode #define CONFIG_BT_CTLR_AGC_MODE 0 // BT AGC Init Mode /* BT Debug Pin Init*/ // BT Debug Pin Init #define CONFIG_BT_CTLR_LINK_LAYER_DEBUG 0 // BT Debug Pin Init /* Calib RF Frequency offset*/ // Calib RF Frequency offset #define CONFIG_RF_CALIB 0 // Calib RF Frequency offset // // Low Power Config /* low power enable */ // Low Power Enable #define CONFIG_PM 0 // low power enable // Keep Flash Power in Low Power Mode #define CONFIG_KEEP_FLASH_POWER_IN_LP_MODE 0 // Select this means flash power would be retained in Low Power Mode, and // there would be a little avg-current increase (about 1uA). The benefit is that // the large peak current (>15mA) would not occur. // Enable DeepSleep Mode 2 #define CONFIG_DEEPSLEEP_MODE_2 0 // Enable DeepSleep Mode 2 (Only LPLDOH in use), and the HW APB Timer Wakeup // and PWM waveform output can be use in this mode. // Increase LPLDOH trim value <0=> +0 <1=> +1 <2=> +2 <3=> +3 <4=> +4 <5=> +5 <6=> +6 <7=> +7 <8=> +8 #define CONFIG_SOC_INCREASE_LPLDOH_CALIB_CODE 0 // Increase LPLDOH voltage for specific LowPower scenario use. // Continue Run After Standby M1 Wakeup #define CONFIG_PM_STANDBY_M1_WAKEUP_WITHOUT_RESET 0 // Check this configuration to let CPU continue run after standby M1 waking up, // or CPU would reset after waking up from standby M1. // Detecting Temperature Optimize Param Enable #define CONFIG_AUTO_OPTIMIZE_POWER_PARAM 0 /* ADC temperature sample interval(s)*/ // Temperature Sample Interval #define CONFIG_TEMP_SAMPLE_INTERVAL_S 300 // ADC temperature sample interval(s) /* DCDC vol */ // DVDD Voltage Optimize Enable #define CONFIG_DVDD_VOL_OPTIMIZE_EN 0 // HCLK Optimize Enable #define CONFIG_HCLK_OPTIMIZE_EN 0 // // Flash Settings Config /* Flash Settings(kv_store) Start Address*/ // Flash Settings(kv_store) Start Address #define CONFIG_SETTINGS_START_ADDR 0x6D000 // Flash Settings(kv_store) Start Address /* Flash Settings(kv_store) Sector Number*/ // Flash Settings(kv_store) Sector Number (>=2) #define CONFIG_SETTINGS_SECTOR_NUM 2 // Flash Settings(kv_store) Sector Number // #endif // SAMPLE_CONFIG_H //*** <<< end of configuration section >>> ***