drivers: ieee802154: fix build for cc13xx/cc26xx
New update of hal_ti requires DeviceFamily_CC13X2/DeviceFamily_CC26X2 to be defined in order to include the rfc.h header. Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
This commit is contained in:
parent
7df12bea9e
commit
e21da06a16
1 changed files with 6 additions and 0 deletions
|
@ -10,3 +10,9 @@ zephyr_sources_ifdef(CONFIG_IEEE802154_CC13XX_CC26XX ieee802154_cc13xx_cc26xx.c)
|
||||||
zephyr_sources_ifdef(CONFIG_IEEE802154_RF2XX ieee802154_rf2xx.c)
|
zephyr_sources_ifdef(CONFIG_IEEE802154_RF2XX ieee802154_rf2xx.c)
|
||||||
zephyr_sources_ifdef(CONFIG_IEEE802154_RF2XX ieee802154_rf2xx_iface.c)
|
zephyr_sources_ifdef(CONFIG_IEEE802154_RF2XX ieee802154_rf2xx_iface.c)
|
||||||
zephyr_sources_ifdef(CONFIG_IEEE802154_DW1000 ieee802154_dw1000.c)
|
zephyr_sources_ifdef(CONFIG_IEEE802154_DW1000 ieee802154_dw1000.c)
|
||||||
|
|
||||||
|
if(CONFIG_SOC_CC1352R)
|
||||||
|
target_compile_definitions(zephyr PRIVATE "DeviceFamily_CC13X2")
|
||||||
|
elseif(CONFIG_SOC_CC2652R)
|
||||||
|
target_compile_definitions(zephyr PRIVATE "DeviceFamily_CC26X2")
|
||||||
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue