1 #include <stdbool.h> 2 #include <stdint.h> 3 4 #include <zephyr/kernel.h> 5 6 7 #if defined(CONFIG_HAS_CC13X2_CC26X2_SDK) || defined(CONFIG_HAS_CC13X2X7_CC26X2X7_SDK) 8 #include "ti/devices/cc13x2_cc26x2/driverlib/interrupt.h" 9 #include "ti/drivers/power/PowerCC26X2.h" 10 #endif /* CONFIG_HAS_CC13X2_CC26X2_SDK */ 11 12 #include "ti/drivers/rf/RF.h" 13 14 #if (defined(CONFIG_HAS_CC13X2_CC26X2_SDK) || defined(CONFIG_HAS_CC13X2X7_CC26X2X7_SDK)) && !defined(CONFIG_CC13X2_CC26X2_HAS_CUSTOM_RF_HWATTRS) 15 16 const RFCC26XX_HWAttrsV2 RFCC26XX_hwAttrs = { 17 .hwiPriority = INT_PRI_LEVEL7, // Lowest HWI priority: INT_PRI_LEVEL7 18 // Highest HWI priority: INT_PRI_LEVEL1 19 20 .swiPriority = 0, // Lowest SWI priority: 0 21 // Highest SWI priority: Swi.numPriorities - 1 22 23 .xoscHfAlwaysNeeded = true // Power driver always starts XOSC-HF: true 24 // RF driver will request XOSC-HF if needed: false 25 }; 26 27 #endif /* defined(CONFIG_HAS_CC13X2_CC26X2_SDK) || defined(CONFIG_HAS_CC13X2X7_CC26X2X7_SDK) && !CONFIG_CC13X2_CC26X2_HAS_CUSTOM_RF_HWATTRS */ 28