diff --git a/simplelink/CMakeLists.txt b/simplelink/CMakeLists.txt index 5e16af5..8e06a36 100644 --- a/simplelink/CMakeLists.txt +++ b/simplelink/CMakeLists.txt @@ -81,7 +81,7 @@ elseif(CONFIG_HAS_CC13X2_CC26X2_SDK) kernel/zephyr/dpl/QueueP_zephyr.c ) - if(CONFIG_SOC_CC1352R) + if(CONFIG_SOC_CC1352R OR CONFIG_SOC_CC1352P) set_source_files_properties(source/ti/drivers/power/PowerCC26X2.c PROPERTIES COMPILE_DEFINITIONS "DeviceFamily_CC13X2;${COMPILER}" ) set_source_files_properties(source/ti/drivers/power/PowerCC26X2_calibrateRCOSC.c @@ -90,7 +90,7 @@ elseif(CONFIG_HAS_CC13X2_CC26X2_SDK) PROPERTIES COMPILE_DEFINITIONS "DeviceFamily_CC13X2;${COMPILER}" ) set_source_files_properties(source/ti/drivers/temperature/TemperatureCC26X2.c PROPERTIES COMPILE_DEFINITIONS "DeviceFamily_CC13X2;${COMPILER}" ) - elseif(CONFIG_SOC_CC2652R) + elseif(CONFIG_SOC_CC2652R OR CONFIG_SOC_CC2652P) set_source_files_properties(source/ti/drivers/power/PowerCC26X2.c PROPERTIES COMPILE_DEFINITIONS "DeviceFamily_CC26X2;${COMPILER}" ) set_source_files_properties(source/ti/drivers/power/PowerCC26X2_calibrateRCOSC.c diff --git a/simplelink/kernel/zephyr/dpl/config.c b/simplelink/kernel/zephyr/dpl/config.c index a0d56ed..f25e1a2 100644 --- a/simplelink/kernel/zephyr/dpl/config.c +++ b/simplelink/kernel/zephyr/dpl/config.c @@ -10,11 +10,11 @@ #include "ti/drivers/power/PowerCC26X2.h" #endif /* CONFIG_HAS_CC13X2_CC26X2_SDK */ -#ifdef CONFIG_SOC_CC1352R +#if defined(CONFIG_SOC_CC1352R) || defined(CONFIG_SOC_CC1352P) #define DeviceFamily_CC13X2 #endif /* CONFIG_SOC_CC1352R */ -#ifdef CONFIG_SOC_CC2652R +#if defined(CONFIG_SOC_CC2652R) || defined(CONFIG_SOC_CC2652P) #define DeviceFamily_CC26X2 #endif /* CONFIG_SOC_CC2652R */ diff --git a/simplelink/source/ti/devices/cc13x2_cc26x2/CMakeLists.txt b/simplelink/source/ti/devices/cc13x2_cc26x2/CMakeLists.txt index e925a49..09b2eb3 100644 --- a/simplelink/source/ti/devices/cc13x2_cc26x2/CMakeLists.txt +++ b/simplelink/source/ti/devices/cc13x2_cc26x2/CMakeLists.txt @@ -44,11 +44,11 @@ zephyr_library_sources_ifdef(CONFIG_BLE_CC13XX_CC26XX driverlib/rfc.c) # Required for on-chip flash support zephyr_library_sources_ifdef(CONFIG_SOC_FLASH_CC13XX_CC26XX driverlib/flash.c) -if(CONFIG_SOC_CC1352R) +if(CONFIG_SOC_CC1352R OR CONFIG_SOC_CC1352P) # Required for RFCDoorbellSendTo which is not in ROM set_source_files_properties(driverlib/rfc.c PROPERTIES COMPILE_DEFINITIONS "DeviceFamily_CC13X2;${COMPILER}" ) -elseif(CONFIG_SOC_CC2652R) +elseif(CONFIG_SOC_CC2652R OR CONFIG_SOC_CC2652P) # Required for RFCDoorbellSendTo which is not in ROM set_source_files_properties(driverlib/rfc.c PROPERTIES COMPILE_DEFINITIONS "DeviceFamily_CC26X2;${COMPILER}" )