31 lines
1.3 KiB
CMake
31 lines
1.3 KiB
CMake
if(CONFIG_HAS_NORDIC_DRIVERS)
|
|
zephyr_include_directories(drivers)
|
|
|
|
add_subdirectory(drivers)
|
|
endif()
|
|
|
|
if(CONFIG_HAS_NRFX)
|
|
zephyr_include_directories(nrfx)
|
|
zephyr_include_directories(nrfx/drivers/include)
|
|
zephyr_include_directories(nrfx/hal)
|
|
zephyr_include_directories(nrfx/mdk)
|
|
zephyr_include_directories(.)
|
|
|
|
zephyr_sources_ifdef(CONFIG_HAS_NRFX nrfx_glue.c)
|
|
|
|
zephyr_sources_ifdef(CONFIG_NRFX_PRS nrfx/drivers/prs/nrfx_prs.c)
|
|
|
|
zephyr_sources_ifdef(CONFIG_NRFX_ADC nrfx/drivers/src/nrfx_adc.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_PWM nrfx/drivers/src/nrfx_pwm.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_RTC nrfx/drivers/src/nrfx_rtc.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_SAADC nrfx/drivers/src/nrfx_saadc.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_SPI nrfx/drivers/src/nrfx_spi.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_SPIM nrfx/drivers/src/nrfx_spim.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_SPIS nrfx/drivers/src/nrfx_spis.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_TWI nrfx/drivers/src/nrfx_twi.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_TWIM nrfx/drivers/src/nrfx_twim.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_UART nrfx/drivers/src/nrfx_uart.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_UARTE nrfx/drivers/src/nrfx_uarte.c)
|
|
zephyr_sources_ifdef(CONFIG_NRFX_WDT nrfx/drivers/src/nrfx_wdt.c)
|
|
endif()
|