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:
Vincent Wan 2020-05-13 16:59:05 -07:00 committed by Carles Cufí
commit e21da06a16

View file

@ -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_iface.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()