hal_ti/simplelink/kernel/zephyr/dpl/config.c

35 lines
1.2 KiB
C

#include <stdbool.h>
#include <stdint.h>
#include <zephyr/kernel.h>
#include "stubs.h"
#ifdef CONFIG_HAS_CC13X2_CC26X2_SDK
#include "ti/devices/cc13x2_cc26x2/driverlib/interrupt.h"
#include "ti/drivers/power/PowerCC26X2.h"
#endif /* CONFIG_HAS_CC13X2_CC26X2_SDK */
#if defined(CONFIG_SOC_CC1352R) || defined(CONFIG_SOC_CC1352P)
#define DeviceFamily_CC13X2
#endif /* CONFIG_SOC_CC1352R */
#if defined(CONFIG_SOC_CC2652R) || defined(CONFIG_SOC_CC2652P)
#define DeviceFamily_CC26X2
#endif /* CONFIG_SOC_CC2652R */
#include "ti/drivers/rf/RF.h"
#ifdef CONFIG_HAS_CC13X2_CC26X2_SDK
const RFCC26XX_HWAttrsV2 RFCC26XX_hwAttrs = {
.hwiPriority = INT_PRI_LEVEL7, // Lowest HWI priority: INT_PRI_LEVEL7
// Highest HWI priority: INT_PRI_LEVEL1
.swiPriority = 0, // Lowest SWI priority: 0
// Highest SWI priority: Swi.numPriorities - 1
.xoscHfAlwaysNeeded = true // Power driver always starts XOSC-HF: true
// RF driver will request XOSC-HF if needed: false
};
#endif /* CONFIG_HAS_CC13X2_CC26X2_SDK */