include_guard(GLOBAL) if (CONFIG_USE_middleware_baremetal) # Add set(CONFIG_USE_middleware_baremetal true) in config.cmake to use this component message("middleware_baremetal component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_COMPONENT_CONFIGURATION) message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC -DSDK_OS_BAREMETAL ) endif() endif() if (CONFIG_USE_utilities_misc_utilities) # Add set(CONFIG_USE_utilities_misc_utilities true) in config.cmake to use this component message("utilities_misc_utilities component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_TOOLCHAIN STREQUAL armgcc) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_sbrk.c ${CMAKE_CURRENT_LIST_DIR}/../../utilities/misc_utilities/fsl_syscall_stub.c ) endif() endif() if (CONFIG_USE_driver_mx25r_flash) # Add set(CONFIG_USE_driver_mx25r_flash true) in config.cmake to use this component message("driver_mx25r_flash component is included from ${CMAKE_CURRENT_LIST_FILE}.") target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/mx25r_flash.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/mx25r_flash/. ) endif() if (CONFIG_USE_driver_pf1550) # Add set(CONFIG_USE_driver_pf1550 true) in config.cmake to use this component message("driver_pf1550 component is included from ${CMAKE_CURRENT_LIST_FILE}.") target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550.c ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/fsl_pf1550_charger.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/pf1550/. ) endif() if (CONFIG_USE_driver_pf3000) # Add set(CONFIG_USE_driver_pf3000 true) in config.cmake to use this component message("driver_pf3000 component is included from ${CMAKE_CURRENT_LIST_FILE}.") target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/fsl_pf3000.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/pf3000/. ) endif() if (CONFIG_USE_DEVICES_Project_Template_MKE15Z7) # Add set(CONFIG_USE_DEVICES_Project_Template_MKE15Z7 true) in config.cmake to use this component message("DEVICES_Project_Template_MKE15Z7 component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_device_MKE15Z7_startup AND CONFIG_USE_driver_adc12 AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_gpio AND CONFIG_USE_driver_lpi2c AND CONFIG_USE_driver_lpuart AND CONFIG_USE_driver_port AND CONFIG_USE_driver_smc AND ((CONFIG_USE_component_serial_manager AND CONFIG_USE_utility_assert AND CONFIG_USE_utility_debug_console) OR (CONFIG_USE_utility_assert_lite AND CONFIG_USE_utility_debug_console_lite))) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MKE15Z7.MKE15Z7) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/project_template/. ) else() message(SEND_ERROR "DEVICES_Project_Template_MKE15Z7.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_device_MKE15Z7_startup) # Add set(CONFIG_USE_device_MKE15Z7_startup true) in config.cmake to use this component message("device_MKE15Z7_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_device_MKE15Z7_system) if(CONFIG_TOOLCHAIN STREQUAL armgcc) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MKE15Z7.S ) endif() if(CONFIG_TOOLCHAIN STREQUAL mcux) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mke15z7.c ${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mke15z7.cpp ) endif() else() message(SEND_ERROR "device_MKE15Z7_startup.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_device_MKE15Z7_CMSIS) # Add set(CONFIG_USE_device_MKE15Z7_CMSIS true) in config.cmake to use this component message("device_MKE15Z7_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/./. ) else() message(SEND_ERROR "device_MKE15Z7_CMSIS.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_RTE_Device) # Add set(CONFIG_USE_RTE_Device true) in config.cmake to use this component message("RTE_Device component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_dmamux AND CONFIG_USE_driver_edma) add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MKE15Z7) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/template/. ) else() message(SEND_ERROR "RTE_Device.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpi2c_edma) # Add set(CONFIG_USE_driver_lpi2c_edma true) in config.cmake to use this component message("driver_lpi2c_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpi2c AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_edma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. ) else() message(SEND_ERROR "driver_lpi2c_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpspi_edma) # Add set(CONFIG_USE_driver_lpspi_edma true) in config.cmake to use this component message("driver_lpspi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpspi AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_edma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. ) else() message(SEND_ERROR "driver_lpspi_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpuart_edma) # Add set(CONFIG_USE_driver_lpuart_edma true) in config.cmake to use this component message("driver_lpuart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_lpuart AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_edma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. ) else() message(SEND_ERROR "driver_lpuart_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_clock) # Add set(CONFIG_USE_driver_clock true) in config.cmake to use this component message("driver_clock component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/drivers/fsl_clock.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/drivers/. ) else() message(SEND_ERROR "driver_clock.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_serial_manager_uart) # Add set(CONFIG_USE_component_serial_manager_uart true) in config.cmake to use this component message("component_serial_manager_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_lpuart)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_uart.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. ) if(CONFIG_USE_COMPONENT_CONFIGURATION) message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC -DSERIAL_PORT_TYPE_UART=1 ) endif() else() message(SEND_ERROR "component_serial_manager_uart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_utility_debug_console_lite) # Add set(CONFIG_USE_utility_debug_console_lite true) in config.cmake to use this component message("utility_debug_console_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_component_lpuart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite/fsl_debug_console.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console_lite ) else() message(SEND_ERROR "utility_debug_console_lite.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_cmsis_lpspi) # Add set(CONFIG_USE_driver_cmsis_lpspi true) in config.cmake to use this component message("driver_cmsis_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_lpspi_edma AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_lpspi AND CONFIG_USE_CMSIS_Driver_Include_SPI AND CONFIG_USE_RTE_Device) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/fsl_lpspi_cmsis.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpspi/. ) else() message(SEND_ERROR "driver_cmsis_lpspi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_cmsis_lpi2c) # Add set(CONFIG_USE_driver_cmsis_lpi2c true) in config.cmake to use this component message("driver_cmsis_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_lpi2c_edma AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_lpi2c AND CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_RTE_Device) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/fsl_lpi2c_cmsis.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpi2c/. ) else() message(SEND_ERROR "driver_cmsis_lpi2c.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_cmsis_lpuart) # Add set(CONFIG_USE_driver_cmsis_lpuart true) in config.cmake to use this component message("driver_cmsis_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_lpuart_edma AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_lpuart AND CONFIG_USE_CMSIS_Driver_Include_USART AND CONFIG_USE_RTE_Device) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/fsl_lpuart_cmsis.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/lpuart/. ) else() message(SEND_ERROR "driver_cmsis_lpuart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_flexio_i2s_edma) # Add set(CONFIG_USE_driver_flexio_i2s_edma true) in config.cmake to use this component message("driver_flexio_i2s_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_i2s AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s_edma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/. ) else() message(SEND_ERROR "driver_flexio_i2s_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_flexio_spi_edma) # Add set(CONFIG_USE_driver_flexio_spi_edma true) in config.cmake to use this component message("driver_flexio_spi_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_spi AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi_edma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/. ) else() message(SEND_ERROR "driver_flexio_spi_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_flexio_uart_edma) # Add set(CONFIG_USE_driver_flexio_uart_edma true) in config.cmake to use this component message("driver_flexio_uart_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_edma AND CONFIG_USE_driver_flexio_uart AND (CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart_edma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/. ) else() message(SEND_ERROR "driver_flexio_uart_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_utility_notifier) # Add set(CONFIG_USE_utility_notifier true) in config.cmake to use this component message("utility_notifier component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/fsl_notifier.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../utilities/notifier/. ) else() message(SEND_ERROR "utility_notifier.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_device_MKE15Z7_system) # Add set(CONFIG_USE_device_MKE15Z7_system true) in config.cmake to use this component message("device_MKE15Z7_system component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_device_MKE15Z7_CMSIS) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/./system_MKE15Z7.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/./. ) else() message(SEND_ERROR "device_MKE15Z7_system.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_utility_assert) # Add set(CONFIG_USE_utility_assert true) in config.cmake to use this component message("utility_assert component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_utility_debug_console) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c ) else() message(SEND_ERROR "utility_assert.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_utility_assert_lite) # Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component message("utility_assert_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_utility_debug_console_lite) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c ) else() message(SEND_ERROR "utility_assert_lite.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_utility_str) # Add set(CONFIG_USE_utility_str true) in config.cmake to use this component message("utility_str component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str ) else() message(SEND_ERROR "utility_str.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_utility_debug_console) # Add set(CONFIG_USE_utility_debug_console true) in config.cmake to use this component message("utility_debug_console component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str/fsl_str.c ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../utilities/str ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console ) else() message(SEND_ERROR "utility_debug_console.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_button) # Add set(CONFIG_USE_component_button true) in config.cmake to use this component message("component_button component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_gpio_adapter)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/button/fsl_component_button.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/button/. ) else() message(SEND_ERROR "component_button.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_crc_adapter) # Add set(CONFIG_USE_component_crc_adapter true) in config.cmake to use this component message("component_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_crc) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_crc.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. ) else() message(SEND_ERROR "component_crc_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_software_crc_adapter) # Add set(CONFIG_USE_component_software_crc_adapter true) in config.cmake to use this component message("component_software_crc_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/fsl_adapter_software_crc.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/crc/. ) else() message(SEND_ERROR "component_software_crc_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_eeprom_InternalFlash) # Add set(CONFIG_USE_component_eeprom_InternalFlash true) in config.cmake to use this component message("component_eeprom_InternalFlash component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_component_flash_adapter) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/extern_flash/fsl_adapter_eeprom_InternalFlash.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/extern_flash/. ) else() message(SEND_ERROR "component_eeprom_InternalFlash.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_ft5406) # Add set(CONFIG_USE_driver_ft5406 true) in config.cmake to use this component message("driver_ft5406 component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/fsl_ft5406.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/ft5406/. ) else() message(SEND_ERROR "driver_ft5406.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_ft6x06) # Add set(CONFIG_USE_driver_ft6x06 true) in config.cmake to use this component message("driver_ft6x06 component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_CMSIS_Driver_Include_I2C) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/fsl_ft6x06.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/ft6x06/. ) else() message(SEND_ERROR "driver_ft6x06.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_fxos8700cq) # Add set(CONFIG_USE_driver_fxos8700cq true) in config.cmake to use this component message("driver_fxos8700cq component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/fsl_fxos.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/fxos8700cq/. ) else() message(SEND_ERROR "driver_fxos8700cq.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_gpio_adapter) # Add set(CONFIG_USE_component_gpio_adapter true) in config.cmake to use this component message("component_gpio_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_gpio AND CONFIG_USE_driver_port) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/fsl_adapter_gpio.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/gpio/. ) else() message(SEND_ERROR "component_gpio_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_lpi2c_adapter) # Add set(CONFIG_USE_component_lpi2c_adapter true) in config.cmake to use this component message("component_lpi2c_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpi2c) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/fsl_adapter_lpi2c.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c/. ) else() message(SEND_ERROR "component_lpi2c_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_ili9341) # Add set(CONFIG_USE_driver_ili9341 true) in config.cmake to use this component message("driver_ili9341 component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/fsl_ili9341.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/ili9341/. ) else() message(SEND_ERROR "driver_ili9341.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_flash_adapter) # Add set(CONFIG_USE_component_flash_adapter true) in config.cmake to use this component message("component_flash_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_flash) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/fsl_adapter_flash.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/internal_flash/. ) else() message(SEND_ERROR "component_flash_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_led) # Add set(CONFIG_USE_component_led true) in config.cmake to use this component message("component_led component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_component_gpio_adapter)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/led/fsl_component_led.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/led/. ) else() message(SEND_ERROR "component_led.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_lists) # Add set(CONFIG_USE_component_lists true) in config.cmake to use this component message("component_lists component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/fsl_component_generic_list.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/lists/. ) else() message(SEND_ERROR "component_lists.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_log) # Add set(CONFIG_USE_component_log true) in config.cmake to use this component message("component_log component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_utility_str) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. ) else() message(SEND_ERROR "component_log.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_log_backend_debugconsole) # Add set(CONFIG_USE_component_log_backend_debugconsole true) in config.cmake to use this component message("component_log_backend_debugconsole component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. ) else() message(SEND_ERROR "component_log_backend_debugconsole.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_log_backend_debugconsole_lite) # Add set(CONFIG_USE_component_log_backend_debugconsole_lite true) in config.cmake to use this component message("component_log_backend_debugconsole_lite component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_component_log AND CONFIG_USE_utility_debug_console_lite) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_debugconsole.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. ) else() message(SEND_ERROR "component_log_backend_debugconsole_lite.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_log_backend_ringbuffer) # Add set(CONFIG_USE_component_log_backend_ringbuffer true) in config.cmake to use this component message("component_log_backend_ringbuffer component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_component_log) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/log/fsl_component_log_backend_ringbuffer.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/log/. ) else() message(SEND_ERROR "component_log_backend_ringbuffer.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_mem_manager) # Add set(CONFIG_USE_component_mem_manager true) in config.cmake to use this component message("component_mem_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. ) else() message(SEND_ERROR "component_mem_manager.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_mem_manager_light) # Add set(CONFIG_USE_component_mem_manager_light true) in config.cmake to use this component message("component_mem_manager_light component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/fsl_component_mem_manager_light.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/mem_manager/. ) else() message(SEND_ERROR "component_mem_manager_light.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_mma8451q) # Add set(CONFIG_USE_driver_mma8451q true) in config.cmake to use this component message("driver_mma8451q component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/fsl_mma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/mma8451q/. ) else() message(SEND_ERROR "driver_mma8451q.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_panic) # Add set(CONFIG_USE_component_panic true) in config.cmake to use this component message("component_panic component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/fsl_component_panic.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/panic/. ) else() message(SEND_ERROR "component_panic.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_pwm_ftm_adapter) # Add set(CONFIG_USE_component_pwm_ftm_adapter true) in config.cmake to use this component message("component_pwm_ftm_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ftm) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/fsl_adapter_pwm_ftm.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/pwm/. ) else() message(SEND_ERROR "component_pwm_ftm_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_reset_adapter) # Add set(CONFIG_USE_component_reset_adapter true) in config.cmake to use this component message("component_reset_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/fsl_adapter_reset.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/reset/. ) else() message(SEND_ERROR "component_reset_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_software_rng_adapter) # Add set(CONFIG_USE_component_software_rng_adapter true) in config.cmake to use this component message("component_software_rng_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/fsl_adapter_software_rng.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/rng/. ) else() message(SEND_ERROR "component_software_rng_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_rtc) # Add set(CONFIG_USE_component_rtc true) in config.cmake to use this component message("component_rtc component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_rtc) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/rtc/fsl_adapter_rtc.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/rtc/. ) if(CONFIG_USE_COMPONENT_CONFIGURATION) message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC -DRTC_LEGACY_FUNCTION_PROTOTYPE=1 ) endif() else() message(SEND_ERROR "component_rtc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_serial_manager) # Add set(CONFIG_USE_component_serial_manager true) in config.cmake to use this component message("component_serial_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_serial_manager_uart OR CONFIG_USE_component_serial_manager_virtual OR CONFIG_USE_component_serial_manager_spi)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_manager.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. ) else() message(SEND_ERROR "component_serial_manager.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_serial_manager_spi) # Add set(CONFIG_USE_component_serial_manager_spi true) in config.cmake to use this component message("component_serial_manager_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_component_serial_manager AND ((CONFIG_USE_driver_lpspi AND CONFIG_USE_component_lpspi_adapter))) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_spi.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. ) if(CONFIG_USE_COMPONENT_CONFIGURATION) message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC -DSERIAL_PORT_TYPE_SPI=1 -DSERIAL_PORT_TYPE_SPI_MASTER=1 -DSERIAL_PORT_TYPE_SPI_SLAVE=1 -DSERIAL_MANAGER_NON_BLOCKING_MODE=1 ) endif() else() message(SEND_ERROR "component_serial_manager_spi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_serial_manager_virtual) # Add set(CONFIG_USE_component_serial_manager_virtual true) in config.cmake to use this component message("component_serial_manager_virtual component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_component_serial_manager AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/fsl_component_serial_port_virtual.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/serial_manager/. ) if(CONFIG_USE_COMPONENT_CONFIGURATION) message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC -DSERIAL_PORT_TYPE_VIRTUAL=1 -DDEBUG_CONSOLE_TRANSFER_NON_BLOCKING ) endif() else() message(SEND_ERROR "component_serial_manager_virtual.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_utility_shell) # Add set(CONFIG_USE_utility_shell true) in config.cmake to use this component message("utility_shell component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_utility_str AND CONFIG_USE_component_lists AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/fsl_shell.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../utilities/shell/. ) if(CONFIG_USE_COMPONENT_CONFIGURATION) message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC -DDEBUG_CONSOLE_RX_ENABLE=0 ) endif() else() message(SEND_ERROR "utility_shell.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_lpspi_adapter) # Add set(CONFIG_USE_component_lpspi_adapter true) in config.cmake to use this component message("component_lpspi_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpspi) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/fsl_adapter_lpspi.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/spi/. ) else() message(SEND_ERROR "component_lpspi_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_ftm_adapter) # Add set(CONFIG_USE_component_ftm_adapter true) in config.cmake to use this component message("component_ftm_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_ftm) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_ftm.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. ) else() message(SEND_ERROR "component_ftm_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_lpit_adapter) # Add set(CONFIG_USE_component_lpit_adapter true) in config.cmake to use this component message("component_lpit_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpit) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_lpit.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. ) else() message(SEND_ERROR "component_lpit_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_lptmr_adapter) # Add set(CONFIG_USE_component_lptmr_adapter true) in config.cmake to use this component message("component_lptmr_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lptmr) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_lptmr.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. ) else() message(SEND_ERROR "component_lptmr_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_timer_manager) # Add set(CONFIG_USE_component_timer_manager true) in config.cmake to use this component message("component_timer_manager component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_component_lists AND (CONFIG_USE_component_ftm_adapter OR CONFIG_USE_component_lpit_adapter OR CONFIG_USE_component_lptmr_adapter)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/fsl_component_timer_manager.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/timer_manager/. ) else() message(SEND_ERROR "component_timer_manager.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_lpuart_adapter) # Add set(CONFIG_USE_component_lpuart_adapter true) in config.cmake to use this component message("component_lpuart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_lpuart) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. ) else() message(SEND_ERROR "component_lpuart_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_lpuart_dma_adapter) # Add set(CONFIG_USE_component_lpuart_dma_adapter true) in config.cmake to use this component message("component_lpuart_dma_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_component_lpuart_adapter AND CONFIG_USE_component_timer_manager AND (CONFIG_USE_driver_lpuart_edma)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_lpuart.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. ) if(CONFIG_USE_COMPONENT_CONFIGURATION) message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC -DHAL_UART_DMA_ENABLE=1 ) endif() else() message(SEND_ERROR "component_lpuart_dma_adapter.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_common) # Add set(CONFIG_USE_driver_common true) in config.cmake to use this component message("driver_common component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_clock AND CONFIG_USE_device_MKE15Z7_CMSIS) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common.c ) if(CONFIG_CORE STREQUAL cm0p) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/fsl_common_arm.c ) endif() target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/common/. ) else() message(SEND_ERROR "driver_common.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_acmp) # Add set(CONFIG_USE_driver_acmp true) in config.cmake to use this component message("driver_acmp component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/acmp/fsl_acmp.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/acmp/. ) else() message(SEND_ERROR "driver_acmp.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_adc12) # Add set(CONFIG_USE_driver_adc12 true) in config.cmake to use this component message("driver_adc12 component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc12/fsl_adc12.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc12/. ) else() message(SEND_ERROR "driver_adc12.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_crc) # Add set(CONFIG_USE_driver_crc true) in config.cmake to use this component message("driver_crc component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/crc/fsl_crc.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/crc/. ) else() message(SEND_ERROR "driver_crc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_dmamux) # Add set(CONFIG_USE_driver_dmamux true) in config.cmake to use this component message("driver_dmamux component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/fsl_dmamux.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dmamux/. ) else() message(SEND_ERROR "driver_dmamux.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_edma) # Add set(CONFIG_USE_driver_edma true) in config.cmake to use this component message("driver_edma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common AND CONFIG_USE_driver_dmamux) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/fsl_edma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/edma/. ) else() message(SEND_ERROR "driver_edma.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_ewm) # Add set(CONFIG_USE_driver_ewm true) in config.cmake to use this component message("driver_ewm component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/fsl_ewm.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ewm/. ) else() message(SEND_ERROR "driver_ewm.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_flash) # Add set(CONFIG_USE_driver_flash true) in config.cmake to use this component message("driver_flash component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_controller.c ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_flash.c ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_cache.c ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/fsl_ftfx_flexnvm.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flash/. ) else() message(SEND_ERROR "driver_flash.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_flexio) # Add set(CONFIG_USE_driver_flexio true) in config.cmake to use this component message("driver_flexio component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/fsl_flexio.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/. ) else() message(SEND_ERROR "driver_flexio.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_flexio_i2c_master) # Add set(CONFIG_USE_driver_flexio_i2c_master true) in config.cmake to use this component message("driver_flexio_i2c_master component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_flexio) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/fsl_flexio_i2c_master.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2c/. ) else() message(SEND_ERROR "driver_flexio_i2c_master.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_flexio_i2s) # Add set(CONFIG_USE_driver_flexio_i2s true) in config.cmake to use this component message("driver_flexio_i2s component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_flexio) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/fsl_flexio_i2s.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/i2s/. ) else() message(SEND_ERROR "driver_flexio_i2s.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_flexio_spi) # Add set(CONFIG_USE_driver_flexio_spi true) in config.cmake to use this component message("driver_flexio_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_flexio) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/fsl_flexio_spi.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/spi/. ) else() message(SEND_ERROR "driver_flexio_spi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_flexio_uart) # Add set(CONFIG_USE_driver_flexio_uart true) in config.cmake to use this component message("driver_flexio_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_flexio) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/fsl_flexio_uart.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/flexio/uart/. ) else() message(SEND_ERROR "driver_flexio_uart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_ftm) # Add set(CONFIG_USE_driver_ftm true) in config.cmake to use this component message("driver_ftm component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ftm/fsl_ftm.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/ftm/. ) else() message(SEND_ERROR "driver_ftm.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_gpio) # Add set(CONFIG_USE_driver_gpio true) in config.cmake to use this component message("driver_gpio component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpio/fsl_gpio.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/gpio/. ) else() message(SEND_ERROR "driver_gpio.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpi2c) # Add set(CONFIG_USE_driver_lpi2c true) in config.cmake to use this component message("driver_lpi2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. ) else() message(SEND_ERROR "driver_lpi2c.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpi2c_freertos) # Add set(CONFIG_USE_driver_lpi2c_freertos true) in config.cmake to use this component message("driver_lpi2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_lpi2c AND CONFIG_USE_middleware_freertos-kernel) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/fsl_lpi2c_freertos.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpi2c/. ) else() message(SEND_ERROR "driver_lpi2c_freertos.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpit) # Add set(CONFIG_USE_driver_lpit true) in config.cmake to use this component message("driver_lpit component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpit/fsl_lpit.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpit/. ) else() message(SEND_ERROR "driver_lpit.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpspi) # Add set(CONFIG_USE_driver_lpspi true) in config.cmake to use this component message("driver_lpspi component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. ) else() message(SEND_ERROR "driver_lpspi.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpspi_freertos) # Add set(CONFIG_USE_driver_lpspi_freertos true) in config.cmake to use this component message("driver_lpspi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_lpspi AND CONFIG_USE_middleware_freertos-kernel) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/fsl_lpspi_freertos.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpspi/. ) else() message(SEND_ERROR "driver_lpspi_freertos.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lptmr) # Add set(CONFIG_USE_driver_lptmr true) in config.cmake to use this component message("driver_lptmr component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lptmr/fsl_lptmr.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lptmr/. ) else() message(SEND_ERROR "driver_lptmr.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpuart) # Add set(CONFIG_USE_driver_lpuart true) in config.cmake to use this component message("driver_lpuart component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. ) else() message(SEND_ERROR "driver_lpuart.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpuart_freertos) # Add set(CONFIG_USE_driver_lpuart_freertos true) in config.cmake to use this component message("driver_lpuart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_lpuart AND CONFIG_USE_middleware_freertos-kernel) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_freertos.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. ) else() message(SEND_ERROR "driver_lpuart_freertos.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_mmdvsq) # Add set(CONFIG_USE_driver_mmdvsq true) in config.cmake to use this component message("driver_mmdvsq component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mmdvsq/fsl_mmdvsq.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mmdvsq/. ) else() message(SEND_ERROR "driver_mmdvsq.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_pdb) # Add set(CONFIG_USE_driver_pdb true) in config.cmake to use this component message("driver_pdb component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdb/fsl_pdb.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pdb/. ) else() message(SEND_ERROR "driver_pdb.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_pmc) # Add set(CONFIG_USE_driver_pmc true) in config.cmake to use this component message("driver_pmc component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmc/fsl_pmc.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pmc/. ) else() message(SEND_ERROR "driver_pmc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_port) # Add set(CONFIG_USE_driver_port true) in config.cmake to use this component message("driver_port component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/port/. ) else() message(SEND_ERROR "driver_port.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_pwt) # Add set(CONFIG_USE_driver_pwt true) in config.cmake to use this component message("driver_pwt component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwt/fsl_pwt.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pwt/. ) else() message(SEND_ERROR "driver_pwt.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_rcm) # Add set(CONFIG_USE_driver_rcm true) in config.cmake to use this component message("driver_rcm component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rcm/fsl_rcm.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rcm/. ) else() message(SEND_ERROR "driver_rcm.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_rtc) # Add set(CONFIG_USE_driver_rtc true) in config.cmake to use this component message("driver_rtc component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtc/fsl_rtc.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rtc/. ) else() message(SEND_ERROR "driver_rtc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_sim) # Add set(CONFIG_USE_driver_sim true) in config.cmake to use this component message("driver_sim component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sim/fsl_sim.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sim/. ) else() message(SEND_ERROR "driver_sim.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_smc) # Add set(CONFIG_USE_driver_smc true) in config.cmake to use this component message("driver_smc component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smc/fsl_smc.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/smc/. ) else() message(SEND_ERROR "driver_smc.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_trgmux) # Add set(CONFIG_USE_driver_trgmux true) in config.cmake to use this component message("driver_trgmux component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trgmux/fsl_trgmux.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/trgmux/. ) else() message(SEND_ERROR "driver_trgmux.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_tsi_v5) # Add set(CONFIG_USE_driver_tsi_v5 true) in config.cmake to use this component message("driver_tsi_v5 component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tsi/tsi_v5/fsl_tsi_v5.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/tsi/tsi_v5/. ) else() message(SEND_ERROR "driver_tsi_v5.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_wdog32) # Add set(CONFIG_USE_driver_wdog32 true) in config.cmake to use this component message("driver_wdog32 component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKE15Z256xxx7 OR CONFIG_DEVICE_ID STREQUAL MKE15Z128xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog32/fsl_wdog32.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog32/. ) else() message(SEND_ERROR "driver_wdog32.MKE15Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif()