2017-10-27 21:43:34 +08:00
|
|
|
add_subdirectory(source/ti/devices)
|
|
|
|
|
|
|
|
if(CONFIG_SIMPLELINK_HOST_DRIVER)
|
|
|
|
zephyr_include_directories(
|
2017-11-11 10:22:20 +08:00
|
|
|
.
|
2017-10-27 21:43:34 +08:00
|
|
|
source
|
|
|
|
kernel/zephyr/dpl
|
|
|
|
)
|
|
|
|
zephyr_compile_definitions(
|
|
|
|
SL_SUPPORT_IPV6
|
|
|
|
SL_PLATFORM_MULTI_THREADED
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_HAS_CC3220SDK)
|
|
|
|
if(CONFIG_SIMPLELINK_HOST_DRIVER)
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_compile_definitions(${COMPILER})
|
|
|
|
zephyr_library_sources(
|
|
|
|
source/ti/drivers/SPI.c
|
|
|
|
source/ti/drivers/spi/SPICC32XXDMA.c
|
|
|
|
source/ti/drivers/dma/UDMACC32XX.c
|
|
|
|
source/ti/drivers/power/PowerCC32XX.c
|
|
|
|
source/ti/drivers/utils/List.c
|
2017-11-11 10:22:20 +08:00
|
|
|
source/ti/drivers/net/wifi/source/driver.c
|
2017-10-27 21:43:34 +08:00
|
|
|
source/ti/drivers/net/wifi/source/device.c
|
|
|
|
source/ti/drivers/net/wifi/source/flowcont.c
|
|
|
|
source/ti/drivers/net/wifi/source/fs.c
|
|
|
|
source/ti/drivers/net/wifi/source/netapp.c
|
|
|
|
source/ti/drivers/net/wifi/source/netcfg.c
|
|
|
|
source/ti/drivers/net/wifi/source/netutil.c
|
|
|
|
source/ti/drivers/net/wifi/source/nonos.c
|
|
|
|
source/ti/drivers/net/wifi/source/spawn.c
|
|
|
|
source/ti/drivers/net/wifi/source/wlan.c
|
|
|
|
source/ti/drivers/net/wifi/porting/CC3220SF_LAUNCHXL.c
|
|
|
|
source/ti/drivers/net/wifi/porting/cc_pal.c
|
|
|
|
source/ti/drivers/net/wifi/eventreg.c
|
|
|
|
source/ti/drivers/net/wifi/source/socket.c
|
2017-11-11 10:22:20 +08:00
|
|
|
source/ti/drivers/net/wifi/source/sl_socket.c
|
2017-10-27 21:43:34 +08:00
|
|
|
|
|
|
|
source/ti/devices/cc32xx/driverlib/timer.c
|
|
|
|
source/ti/devices/cc32xx/driverlib/udma.c
|
|
|
|
|
|
|
|
kernel/zephyr/dpl/dpl.c
|
|
|
|
kernel/zephyr/dpl/MutexP_zephyr.c
|
|
|
|
kernel/zephyr/dpl/SemaphoreP_zephyr.c
|
|
|
|
kernel/zephyr/dpl/ClockP_zephyr.c
|
|
|
|
kernel/zephyr/dpl/HwiP_zephyr.c
|
|
|
|
)
|
|
|
|
|
2017-11-11 10:22:20 +08:00
|
|
|
set_source_files_properties(source/ti/drivers/net/wifi/source/driver.c
|
|
|
|
PROPERTIES COMPILE_DEFINITIONS "__LINUX_ERRNO_EXTENSIONS__;${COMPILER}" )
|
|
|
|
set_source_files_properties(source/ti/drivers/net/wifi/source/driver.c
|
|
|
|
PROPERTIES COMPILE_FLAGS -Wno-strict-aliasing) # driver.c warns on strict-aliasing
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2017-11-11 10:22:20 +08:00
|
|
|
set_source_files_properties(source/ti/drivers/net/wifi/source/sl_socket.c
|
|
|
|
PROPERTIES COMPILE_DEFINITIONS "${COMPILER}")
|
|
|
|
set_source_files_properties(source/ti/drivers/net/wifi/source/sl_socket.c
|
|
|
|
PROPERTIES COMPILE_FLAGS -Wno-missing-braces) # sl_socket warns on missing braces
|
2017-10-27 21:43:34 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
elseif(CONFIG_HAS_MSP432P4XXSDK)
|
|
|
|
zephyr_include_directories(
|
|
|
|
source
|
|
|
|
)
|
|
|
|
endif()
|