1 #include <stdbool.h> 2 #include <stdint.h> 3 4 #include <zephyr.h> 5 6 #include "stubs.h" 7 8 #ifdef CONFIG_HAS_CC13X2_CC26X2_SDK 9 #include "ti/devices/cc13x2_cc26x2/driverlib/interrupt.h" 10 #include "ti/drivers/power/PowerCC26X2.h" 11 #endif /* CONFIG_HAS_CC13X2_CC26X2_SDK */ 12 13 #ifdef CONFIG_SOC_CC1352R 14 #define DeviceFamily_CC13X2 15 #endif /* CONFIG_SOC_CC1352R */ 16 17 #ifdef CONFIG_SOC_CC2652R 18 #define DeviceFamily_CC26X2 19 #endif /* CONFIG_SOC_CC2652R */ 20 21 #include "ti/drivers/rf/RF.h" 22 23 #ifdef CONFIG_HAS_CC13X2_CC26X2_SDK 24 const RFCC26XX_HWAttrsV2 RFCC26XX_hwAttrs = { 25 .hwiPriority = INT_PRI_LEVEL7, // Lowest HWI priority: INT_PRI_LEVEL7 26 // Highest HWI priority: INT_PRI_LEVEL1 27 28 .swiPriority = 0, // Lowest SWI priority: 0 29 // Highest SWI priority: Swi.numPriorities - 1 30 31 .xoscHfAlwaysNeeded = true // Power driver always starts XOSC-HF: true 32 // RF driver will request XOSC-HF if needed: false 33 }; 34 #endif /* CONFIG_HAS_CC13X2_CC26X2_SDK */ 35