1 /*
2  * Copyright (c) 2019 Brett Witherspoon
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifdef CONFIG_CC13X2_CC26X2_BOOTLOADER_ENABLE
8 #define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0xC5
9 #else
10 #define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0x00
11 #endif /* CONFIG_CC13X2_CC26X2_BOOTLOADER_ENABLE */
12 
13 #ifdef CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE
14 #define SET_CCFG_BL_CONFIG_BL_ENABLE 0xC5
15 #define SET_CCFG_BL_CONFIG_BL_PIN_NUMBER CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_PIN
16 #define SET_CCFG_BL_CONFIG_BL_LEVEL CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_LEVEL
17 #else
18 #define SET_CCFG_BL_CONFIG_BL_ENABLE 0x00
19 #endif /* CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE */
20 
21 /* TI recommends setting CCFG values and then including the TI provided ccfg.c */
22 #include <startup_files/ccfg.c>
23