#ifndef SDK_CONFIG_H #define SDK_CONFIG_H //*** <<< Use Configuration Wizard in Context Menu >>> *** //****************************************************************************** // Application Config // Application Config End // //****************************************************************************** // SoC Platform // Chip Power Mode // <0=> LDO // <1=> DCDC #define CONFIG_SOC_DCDC_PAN1070 1 // System Clock // <48=> 48 MHz (DPLL) // <32=> 32 MHz (DPLL) // System main frequency, Unit MHz #define CONFIG_SYSTEM_CLOCK 48 // APB1 Clock Divisor // <0=> No Divider // <2=> 2 // <4=> 4 // <6=> 6 // <8=> 8 // <10=> 10 // <12=> 12 // <14=> 14 // <16=> 16 // Divisor of peripheral clocks on APB1, It can only be even numbers. #define CONFIG_APB1_CLOCK_DIVISOR 2 // APB2 Clock Divisor // <0=> No Divider // <2=> 2 // <4=> 4 // <6=> 6 // <8=> 8 // <10=> 10 // <12=> 12 // <14=> 14 // <16=> 16 // Divisor of peripheral clocks on APB2, It can only be even numbers. #define CONFIG_APB2_CLOCK_DIVISOR 2 // 32K Low-Speed Clock Source // <0=> RCL (32000 Hz) // <1=> XTL (32768 Hz) // <2=> ACT32K (32000 Hz) // Select a low-speed clock source #define CONFIG_LOW_SPEED_CLOCK_SRC 1 // Force Calib RCL Clock // Force calibrate the 32K RCL clock at system init stage. // NOTE this only take effect when the Low-Speed Clock Source is seleted to RCL. #define CONFIG_FORCE_CALIB_RCL_CLK 0 // Enable RAM Function // Adding essential code to SRAM could improve running performance. #define CONFIG_RAM_FUNCTION 1 // Enable Flash LDO // Enable the internal 1.8v flash LDO for flash power supply // instead of the default flash power from SoC VBAT. #define CONFIG_FLASH_LDO_EN 1 // Remap Vector Table to SRAM #define CONFIG_VECTOR_REMAP_TO_RAM 1 // Enable Auto Power Optimization // Several power configurations could be updated due to temperature change. #define CONFIG_AUTO_OPTIMIZE_POWER_PARAM 0 // Temperature Sample Interval (in Seconds) #define CONFIG_TEMP_SAMPLE_INTERVAL_S 300 // Enable DVDD Voltage Optimization #define CONFIG_DVDD_VOL_OPTIMIZE_EN 1 // // Soc Platform End // //****************************************************************************** // Power Management // Enable Low Power Mode #define CONFIG_PM 0 // Enable System Watchdog #define CONFIG_SYSTEM_WATCH_DOG_ENABLE 0 // Keep Flash Power in Low Power Mode // 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. #define CONFIG_KEEP_FLASH_POWER_IN_LP_MODE 1 // Enable DeepSleep Mode 2 // Enable DeepSleep Mode 2 (Only LPLDOH in use), and the HW APB Timer Wakeup // and PWM waveform output can be use in this mode. #define CONFIG_DEEPSLEEP_MODE_2 0 // Increase LPLDOH trim value // <0=> +0 // <1=> +1 // <2=> +2 // <3=> +3 // <4=> +4 // <5=> +5 // <6=> +6 // <7=> +7 // <8=> +8 // Increase LPLDOH voltage for specific LowPower scenario use. #define CONFIG_SOC_INCREASE_LPLDOH_CALIB_CODE 0 // Continue Run After Standby M1 Wakeup // Check this configuration to let CPU continue run after standby M1 waking up, // or CPU would reset after waking up from standby M1. #define CONFIG_PM_STANDBY_M1_WAKEUP_WITHOUT_RESET 0 // Enable AHB Clock Optimization #define CONFIG_HCLK_OPTIMIZE_EN 0 // Power Management End // //****************************************************************************** // RTOS Config // OS Enable #define CONFIG_OS_EN 1 // The Maximun Numble of OS Task #define configMAX_PRIORITIES 8 // OS Total Heap Size(in byte) #define configTOTAL_HEAP_SIZE 11000 // OS Main Thread Stack Size(in word) #define CONFIG_MAIN_TASK_STACK_SIZE 400 // OS Main Thread Priority #define CONFIG_MAIN_TASK_PRIO 3 // OS BLE Host Thread Stack Size(in word) #define CONFIG_BLE_HOST_THREAD_STACK_SIZE 400 // OS BLE Host Thread Priority #define CONFIG_BLE_HOST_THREAD_PRIO 6 // OS Timer Task Enable #define configUSE_TIMERS 1 // OS Timer Task Stack Size(in word) #define configTIMER_TASK_STACK_DEPTH 128 // OS Timer Task Priority #define configTIMER_TASK_PRIORITY 2 // The Maximun Number of OS Timer Queue Length #define configTIMER_QUEUE_LENGTH 12 // Enable OS Idle Hook #define configUSE_IDLE_HOOK 0 // Enable OS Tick Hook #define configUSE_TICK_HOOK 0 // Enable OS Malloc Fail Hook #define configUSE_MALLOC_FAILED_HOOK 1 // Enable OS Stack OverFlow Hook // <0=>Disable <1=>Mode1 <2=>Mode2 #define configCHECK_FOR_STACK_OVERFLOW 0 // OS Log: Print Current Heap Usage #define CONFIG_FREERTOS_HEAP_PRINT 0 // RTOS Config End // //****************************************************************************** // BLE Resource Config // Use Chip unique Mac Address #define CONFIG_USER_CHIP_MAC_ADDR 1 // RF 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 // Support Maximun Number of BLE Master Link #define CONFIG_BT_MAX_NUM_OF_CENTRAL 1 // Support Maximun Number of BLE Slave Link #define CONFIG_BT_MAX_NUM_OF_PERIPHERAL 1 // Support GAP Broadcaster Role #define MYNEWT_VAL_BLE_ROLE_BROADCASTER 1 // Support GAP Central Role #define MYNEWT_VAL_BLE_ROLE_CENTRAL 1 // Support GAP Observser Role #define MYNEWT_VAL_BLE_ROLE_OBSERVER 1 // Support GAP Peripheral Role #define MYNEWT_VAL_BLE_ROLE_PERIPHERAL 1 // BLE Host Max ATT MTU Size #define MYNEWT_VAL_BLE_ATT_PREFERRED_MTU 247 // BLE Host HCI Rx ACL buffer counts #define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_LL_COUNT 8 // BLE Host HCI Rx ACL buffer size #define MYNEWT_VAL_BLE_TRANSPORT_ACL_SIZE 251 // BLE Host HCI events counts #define MYNEWT_VAL_BLE_TRANSPORT_EVT_COUNT 8 // BLE Host HCI discardable events counts #define MYNEWT_VAL_BLE_TRANSPORT_EVT_DISCARDABLE_COUNT 6 // BLE Host L2CAP buffer counts #define MYNEWT_VAL_MSYS_1_BLOCK_COUNT 4 // BLE Host L2CAP buffer size #define MYNEWT_VAL_MSYS_1_BLOCK_SIZE 120 // BLE Controller RF RX Buffer Number (must be a power of 2) #define CONFIG_BLE_CONTROLLER_RF_RX_BUF_NUM 8 // BLE Controller RF TX Buffer Number (must be a power of 2) #define CONFIG_BLE_CONTROLLER_RF_TX_BUF_NUM 4 // BLE Controller Packet Encrypt Time (unit:us) #define CONFIG_BLE_CONTROLLER_LL_ENC_TIME 300 // BLE Controller More Data Number #define CONFIG_BLE_CONTROLLER_MORE_DATA_NUM 6 // BLE Controller WhiteList Number #define CONFIG_BLE_CONTROLLER_WIHTELIST_NUM 1 // BLE Controller Resolving List Number #define CONFIG_BLE_CONTROLLER_RESOLVELIST_NUM 0 // BLE Controller Master Link Margin (unit:0.625ms) #define CONFIG_BLE_CONTROLLER_MASTER_LINK_MARGIN 10 // BLE LL IRQ Priority // <0=>Highest <1=>High <2=>Low <3=>Lowest #define CONFIG_BLE_LL_IRQ_PRIO 0 // BLE Event Handler IRQ Priority // <0=>Highest <1=>High <2=>Low <3=>Lowest #define CONFIG_BLE_EVT_HANDLER_IRQ_PRIO 1 // BLE Resource End // //****************************************************************************** // BLE Security Manager // Select Security Level #define MYNEWT_VAL_BLE_SM_SC_LVL 2 // Enable SM Legacy Pair #define MYNEWT_VAL_BLE_SM_LEGACY 1 // Enable SM Security Pair #define MYNEWT_VAL_BLE_SM_SC 0 // Select IO Capability // <0=> DisplayOnly // <1=> DisplayYesN // <2=> KeyboardOnly // <3=> NoInputNoOutput // <4=> KeyboardDisplay Only #define CONFIG_HS_IO_CAPABILITY 3 // Enable SM Bonding #define MYNEWT_VAL_BLE_SM_BONDING 0 // Enable SM MITM #define MYNEWT_VAL_BLE_SM_MITM 0 // Enable SM OOB #define MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG 0 // Set Local Distribute Key // <0=> None // <1=> LTK // <3=> LTK and IRK // <7=> LTK and IRK and CSRK #define MYNEWT_VAL_BLE_SM_OUR_KEY_DIST 1 // Set Peer Distribute Key // <0=> None // <1=> LTK // <3=> LTK and IRK // <7=> LTK and IRK and CSRK #define MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST 1 // Enable SM Info Persist Store #define MYNEWT_VAL_BLE_STORE_CONFIG_PERSIST 1 // Set Maximun Store Bonded Devices Number #define MYNEWT_VAL_BLE_STORE_MAX_BONDS 2 // Set Maximun Store Bonded Device CCCD Number #define MYNEWT_VAL_BLE_STORE_MAX_CCCDS 8 // Enable BLE Host RPA Resovling Function #define MYNEWT_VAL_HOST_SOFTWARE_RPA 1 // BLE Security Manager End // //****************************************************************************** // BLE Services Config // BLE Services Config End // //****************************************************************************** // Flash & Image Config // Chip Flash Size // <0x7F000=> 508 KB // <0x3F000=> 252 KB // You can select chip flash size in the pull-down list, but modify the list only when you know what you are doing! #define CONFIG_FLASH_SIZE 0x7F000 // Flash Partition Config // Bootloader Flash Partition Address // <0x00000=> 0x00000 (Fixed) // Start address of bootloader (when use), do not modify this value in any case! #define CONFIG_FLASH_PARTITION_BOOTLOADER_ADDR 0x00000 // Bootloader Flash Partition Size // <0x00000=> 0x00000 (0 KB) // <0x0A000=> 0x0A000 (40 KB) #define CONFIG_FLASH_PARTITION_BOOTLOADER_SIZE 0x0A000 // App Flash Partition Address // <0x00000=> 0x00000 (No Bootloader) // <0x0A000=> 0x0A000 (Need Bootloader) #define CONFIG_FLASH_PARTITION_APP_ADDR 0x0A000 // App Flash Partition Size // <0x78000=> 0x78000 (480 KB) // <0x37000=> 0x37000 (220 KB) #define CONFIG_FLASH_PARTITION_APP_SIZE 0x37000 // App Backup Flash Partition Address // <0x00000=> 0x00000 // <0x41000=> 0x41000 #define CONFIG_FLASH_PARTITION_APP_BACKUP_ADDR 0x41000 // App Backup Flash Partition Size // <0x00000=> 0x00000 (0 KB) // <0x37000=> 0x37000 (220 KB) #define CONFIG_FLASH_PARTITION_APP_BACKUP_SIZE 0x37000 // KVStore Flash Partition Address // <0x78000=> 0x78000 #define CONFIG_FLASH_PARTITION_KVSTORE_ADDR 0x78000 // KVStore Flash Partition Size // <0x04000=> 0x04000 (16 KB) // <0x07000=> 0x07000 (28 KB) #define CONFIG_FLASH_PARTITION_KVSTORE_SIZE 0x04000 // User Custom Flash Partition Address // <0x7C000=> 0x7C000 // <0x00000=> 0x00000 #define CONFIG_FLASH_PARTITION_USER_CUSTOM_ADDR 0x7C000 // User Custom Flash Partition Size // <0x03000=> 0x03000 (12 KB) // <0x00000=> 0x00000 (0 KB) #define CONFIG_FLASH_PARTITION_USER_CUSTOM_SIZE 0x03000 // Check if flash partition configs value are valid #if CONFIG_FLASH_PARTITION_BOOTLOADER_SIZE % 0x1000 #error "Bootloader Partition size should be multiple of 0x1000 (4KB)!" #endif #if CONFIG_FLASH_PARTITION_APP_SIZE % 0x1000 #error "App Partition size should be multiple of 0x1000 (4KB)!" #endif #if CONFIG_FLASH_PARTITION_APP_BACKUP_SIZE % 0x1000 #error "App Backup Partition size should be multiple of 0x1000 (4KB)!" #endif #if CONFIG_FLASH_PARTITION_KVSTORE_SIZE % 0x1000 #error "KVStore Partition size should be multiple of 0x1000 (4KB)!" #endif #if CONFIG_FLASH_PARTITION_USER_CUSTOM_SIZE % 0x1000 #error "User Custom Partition size should be multiple of 0x1000 (4KB)!" #endif #if CONFIG_FLASH_PARTITION_APP_SIZE == 0 #error "App Partition size should not be 0!" #endif #if (CONFIG_FLASH_PARTITION_APP_ADDR != CONFIG_FLASH_PARTITION_BOOTLOADER_ADDR + CONFIG_FLASH_PARTITION_BOOTLOADER_SIZE) #error "Bootloader Partition overlaps the App Partition!" #endif #if CONFIG_FLASH_PARTITION_APP_BACKUP_SIZE > 0 #if (CONFIG_FLASH_PARTITION_APP_BACKUP_ADDR != CONFIG_FLASH_PARTITION_APP_ADDR + CONFIG_FLASH_PARTITION_APP_SIZE) #error "App Partition overlaps the App Backup Partition!" #endif #endif #if CONFIG_FLASH_PARTITION_KVSTORE_SIZE > 0 #if (CONFIG_FLASH_PARTITION_KVSTORE_ADDR != CONFIG_FLASH_PARTITION_APP_ADDR + CONFIG_FLASH_PARTITION_APP_SIZE + CONFIG_FLASH_PARTITION_APP_BACKUP_SIZE) #error "App or App Backup Partition overlaps the KVStore Partition!" #endif #endif #if CONFIG_FLASH_PARTITION_USER_CUSTOM_SIZE > 0 #if (CONFIG_FLASH_PARTITION_USER_CUSTOM_ADDR != CONFIG_FLASH_PARTITION_APP_ADDR + CONFIG_FLASH_PARTITION_APP_SIZE + CONFIG_FLASH_PARTITION_APP_BACKUP_SIZE + CONFIG_FLASH_PARTITION_KVSTORE_SIZE) #error " KVStore Partition overlaps the User Custom Partition!" #endif #endif #if (CONFIG_FLASH_PARTITION_BOOTLOADER_SIZE + CONFIG_FLASH_PARTITION_APP_SIZE + CONFIG_FLASH_PARTITION_APP_BACKUP_SIZE + CONFIG_FLASH_PARTITION_KVSTORE_SIZE + CONFIG_FLASH_PARTITION_USER_CUSTOM_SIZE > CONFIG_FLASH_SIZE) #error "The size of all flash partitions excceeds the total flash size!" #endif // Flash Partition Config End // Enable App Image Header // App Image header should only be enabled when there is a bootloader to boot App Image. #define CONFIG_APP_USE_IMAGE_HEADER 1 #if CONFIG_APP_USE_IMAGE_HEADER // App Image Version - Major <0-255> #define CONFIG_APP_IMG_VER_MAJOR 0 // App Image Version - Minor <0-255> #define CONFIG_APP_IMG_VER_MINOR 0 // App Image Version - Revision <0-65535> #define CONFIG_APP_IMG_VER_REVISION 1 // App Image Version - Build Num <0x0-0xFFFFFFFF> #define CONFIG_APP_IMG_VER_BUILD 0 #endif // Check valid config condition #if (!CONFIG_FLASH_PARTITION_APP_ADDR) && CONFIG_APP_USE_IMAGE_HEADER #error "Image header should not be enabled when bootloader is not used!" #endif // // Enable Firmware Encryption // Generate AES encrypted firmware at build stage for SoC with secure enabled. // Should be consistent with encrypt_info.yaml #define CONFIG_FIRMWARE_ENCRYPTION 0 #if CONFIG_FIRMWARE_ENCRYPTION // Encrypt Flash Offset // Flash offset index to indicate which page should be encrypted. // Should be consistent with encrypt_info.yaml file! #define CONFIG_ENCRYPT_FLASH_OFFSET 0x001 #endif /* CONFIG_FIRMWARE_ENCRYPTION */ // // Flash & Image Config End // //****************************************************************************** // Log & Debug Config // Enable App Log #define APP_LOG_EN 1 // Log Level Select // <4=> APP_LOG_LVL_DEBUG // <3=> APP_LOG_LVL_INFO // <2=> APP_LOG_LVL_WRN // <1=> APP_LOG_LVL_ERR // <0=> APP_LOG_LVL_NONE #define APP_LOG_LVL 4 // Log Level Output Enable #define APP_LOG_LVL_OUTPUT_EN 1 // Log Trace Output Enable #define APP_LOG_TRACE_OUTPUT_EN 0 // Log to UART #define CONFIG_UART_LOG_ENABLE 1 // Log UART Tx Pin // <0=> P05 (UART0) // <1=> P11 (UART0) // <2=> P16 (UART0) // <3=> P01 (UART1) // <4=> P10 (UART1) // <5=> P12 (UART1) // <6=> P25 (UART1) // <7=> P31 (UART1) // Select a UART Tx pin for logging output. #define CONFIG_LOG_UART_PIN 2 // Log UART Baudrate // <115200=> 115200 // <230400=> 230400 // <460800=> 460800 // <921600=> 921600 // <1000000=> 1M // <2000000=> 2M #define CONFIG_LOG_UART_BAUDRATE 921600 // Enable UART Log End // Log to RTT // Note that the Low Power Mode (CONFIG_PM) should be disabled // while using RTT log, since the Jlink SWD connnection would be lost // at SoC DeepSleep or Standby Mode. #define CONFIG_RTT_LOG_ENABLE 0 // RTT Log Buffer Size (Bytes) // Configure Log RTT Up Buffer Size in Bytes (Channel 0). #define CONFIG_LOG_RTT_UP_BUFFER_SIZE 512 // Enable RTT Log End // App Log Enable End // Enable IO Timing Track #define CONFIG_IO_TIMING_TRACK 0 // (Internal) Enable BLE Controller Timing Track // This config is used to enable timing track of BLE controller internal signals and events. // Do NOT enable this config if you are not sure how it actually work! // - Some fixed pins are used for RF debugging: P04 / P07 / P10. // - Some configurable pins are used for BLE events, see app_track.c for current pin config. #define CONFIG_BT_CTLR_LINK_LAYER_DEBUG 0 // DeepSleep Mode Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for DeepSleep Mode Timing Track. #define CONFIG_TRACK_PIN_DEEPSLEEP_MODE 0x22 // Sleep Mode Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for Sleep Mode Timing Track. #define CONFIG_TRACK_PIN_SLEEP_MODE 0x23 // LinkLayer IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for BLE-LinkLayer / 2.4G-RF IRQ Timing Track. #define CONFIG_TRACK_PIN_LL_IRQ 0x99 // BLE Event IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for BLE Event IRQ Timing Track. // Currently this IRQ is borrowed from an unused peripheral (e.g. ADC). #define CONFIG_TRACK_PIN_BLE_EVNT_IRQ 0x99 // OS Tick IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for OS Tick IRQ Timing Track. #define CONFIG_TRACK_PIN_OS_TICK_IRQ 0x99 // SleepTimer IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for SleepTimer IRQ Timing Track. #define CONFIG_TRACK_PIN_SLPTMR_IRQ 0x99 // Hardfault IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for Hardfault IRQ Timing Track. #define CONFIG_TRACK_PIN_HARDFAULT_IRQ 0x99 // HAL DMA IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for DMA IRQ Timing Track. #define CONFIG_TRACK_PIN_DMA_IRQ 0x99 // HAL GPIO P0 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for GPIO Port0 IRQ Timing Track. #define CONFIG_TRACK_PIN_GPIO0_IRQ 0x99 // HAL GPIO P1 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for GPIO Port1 IRQ Timing Track. #define CONFIG_TRACK_PIN_GPIO1_IRQ 0x99 // HAL GPIO P2 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for GPIO Port2 IRQ Timing Track. #define CONFIG_TRACK_PIN_GPIO2_IRQ 0x99 // HAL GPIO P3 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for GPIO Port3 IRQ Timing Track. #define CONFIG_TRACK_PIN_GPIO3_IRQ 0x99 // HAL I2C IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for I2C IRQ Timing Track. #define CONFIG_TRACK_PIN_I2C_IRQ 0x99 // HAL SPI0 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for SPI0 IRQ Timing Track. #define CONFIG_TRACK_PIN_SPI0_IRQ 0x99 // HAL SPI1 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for SPI1 IRQ Timing Track. #define CONFIG_TRACK_PIN_SPI1_IRQ 0x99 // HAL TMR0 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for TMR0 IRQ Timing Track. #define CONFIG_TRACK_PIN_TMR0_IRQ 0x99 // HAL TMR1 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for TMR1 IRQ Timing Track. #define CONFIG_TRACK_PIN_TMR1_IRQ 0x99 // HAL TMR2 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for TMR2 IRQ Timing Track. #define CONFIG_TRACK_PIN_TMR2_IRQ 0x99 // HAL UART0 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for UART0 IRQ Timing Track. #define CONFIG_TRACK_PIN_UART0_IRQ 0x99 // HAL UART1 IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for UART1 IRQ Timing Track. #define CONFIG_TRACK_PIN_UART1_IRQ 0x99 // HAL WDT IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for WDT IRQ Timing Track. #define CONFIG_TRACK_PIN_WDT_IRQ 0x99 // HAL WWDT IRQ Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for WWDT IRQ Timing Track. #define CONFIG_TRACK_PIN_WWDT_IRQ 0x99 // User App Channel 0 Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for User App Timing Track Channel 0. #define CONFIG_TRACK_USER_APP_CHN0 0x99 // User App Channel 1 Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for User App Timing Track Channel 1. #define CONFIG_TRACK_USER_APP_CHN1 0x99 // User App Channel 2 Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for User App Timing Track Channel 2. #define CONFIG_TRACK_USER_APP_CHN2 0x99 // User App Channel 3 Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for User App Timing Track Channel 3. #define CONFIG_TRACK_USER_APP_CHN3 0x99 // User App Channel 4 Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for User App Timing Track Channel 4. #define CONFIG_TRACK_USER_APP_CHN4 0x99 // User App Channel 5 Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for User App Timing Track Channel 5. #define CONFIG_TRACK_USER_APP_CHN5 0x99 // User App Channel 6 Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for User App Timing Track Channel 6. #define CONFIG_TRACK_USER_APP_CHN6 0x99 // User App Channel 7 Track Pin // <0x99=> None // <0x00=> P00 (SWD_CLK) // <0x01=> P01 (SWD_DAT) // <0x02=> P02 // <0x03=> P03 // <0x04=> P04 // <0x05=> P05 // <0x06=> P06 // <0x07=> P07 // <0x10=> P10 // <0x11=> P11 // <0x12=> P12 // <0x13=> P13 // <0x14=> P14 // <0x15=> P15 // <0x16=> P16 // <0x17=> P17 // <0x20=> P20 (XTL1) // <0x21=> P21 (XTL0) // <0x22=> P22 // <0x23=> P23 // <0x24=> P24 // <0x25=> P25 // <0x26=> P26 // <0x27=> P27 // <0x30=> P30 // <0x31=> P31 // Select a GPIO pin for User App Timing Track Channel 7. #define CONFIG_TRACK_USER_APP_CHN7 0x99 // Enable IO Timing Track End // Enable Startup Long Delay // Add a long delay at system startup stage for debugging purpose. // e.g. This can make jlink programing easier when low-power mode enabled. #define CONFIG_STARTUP_LONG_DELAY 0 // Log Config End // //*** <<< end of configuration section >>> *** #endif /* SDK_CONFIG_H */