zephyr: kconfig for CC13x2P / CC26x2P variants
Adds the new SoC Kconfig vars (SOC_CC1352P and SOC_CC2652P) to family conditions. Signed-off-by: Stancu Florin <niflostancu@gmail.com>
This commit is contained in:
parent
b00ac9bf52
commit
bcc5286992
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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}" )
|
||||
|
|
Loading…
Reference in New Issue