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_DEVICES_Project_Template_MKM35Z7) # Add set(CONFIG_USE_DEVICES_Project_Template_MKM35Z7 true) in config.cmake to use this component message("DEVICES_Project_Template_MKM35Z7 component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_component_uart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_device_MKM35Z7_startup AND CONFIG_USE_driver_clock AND CONFIG_USE_driver_common AND CONFIG_USE_driver_gpio AND CONFIG_USE_driver_irtc AND CONFIG_USE_driver_port AND CONFIG_USE_driver_smc AND CONFIG_USE_driver_uart 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_MKM35Z7.MKM35Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/board.c "" DEVICES_Project_Template_MKM35Z7.MKM35Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.h "" DEVICES_Project_Template_MKM35Z7.MKM35Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/clock_config.c "" DEVICES_Project_Template_MKM35Z7.MKM35Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.h "" DEVICES_Project_Template_MKM35Z7.MKM35Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/pin_mux.c "" DEVICES_Project_Template_MKM35Z7.MKM35Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.h "" DEVICES_Project_Template_MKM35Z7.MKM35Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/project_template/peripherals.c "" DEVICES_Project_Template_MKM35Z7.MKM35Z7) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/project_template/. ) else() message(SEND_ERROR "DEVICES_Project_Template_MKM35Z7.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_device_MKM35Z7_startup) # Add set(CONFIG_USE_device_MKM35Z7_startup true) in config.cmake to use this component message("device_MKM35Z7_startup component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_device_MKM35Z7_system) if(CONFIG_TOOLCHAIN STREQUAL armgcc) add_config_file(${CMAKE_CURRENT_LIST_DIR}/./gcc/startup_MKM35Z7.S "" device_MKM35Z7_startup.MKM35Z7) endif() if(CONFIG_TOOLCHAIN STREQUAL mcux) add_config_file(${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mkm35z7.c "" device_MKM35Z7_startup.MKM35Z7) add_config_file(${CMAKE_CURRENT_LIST_DIR}/./mcuxpresso/startup_mkm35z7.cpp "" device_MKM35Z7_startup.MKM35Z7) endif() else() message(SEND_ERROR "device_MKM35Z7_startup.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_device_MKM35Z7_CMSIS) # Add set(CONFIG_USE_device_MKM35Z7_CMSIS true) in config.cmake to use this component message("device_MKM35Z7_CMSIS component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_CMSIS_Include_core_cm AND (CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7)) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/./. ) else() message(SEND_ERROR "device_MKM35Z7_CMSIS.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_dma AND CONFIG_USE_driver_dmamux) add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/RTE_Device.h "" RTE_Device.MKM35Z7) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/template/. ) else() message(SEND_ERROR "RTE_Device.MKM35Z7 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.MKM35Z7 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_uart_adapter AND CONFIG_USE_component_serial_manager AND (CONFIG_USE_driver_lpuart OR CONFIG_USE_driver_uart)) 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.MKM35Z7 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_uart_adapter AND (CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common AND CONFIG_USE_utility_str) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${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/debug_console_lite ) else() message(SEND_ERROR "utility_debug_console_lite.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_cmsis_spi) # Add set(CONFIG_USE_driver_cmsis_spi true) in config.cmake to use this component message("driver_cmsis_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_spi_dma AND (CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_spi 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/spi/fsl_spi_cmsis.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/spi/. ) else() message(SEND_ERROR "driver_cmsis_spi.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_cmsis_i2c) # Add set(CONFIG_USE_driver_cmsis_i2c true) in config.cmake to use this component message("driver_cmsis_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_i2c_dma AND (CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_i2c 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/i2c/fsl_i2c_cmsis.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/i2c/. ) else() message(SEND_ERROR "driver_cmsis_i2c.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_cmsis_uart) # Add set(CONFIG_USE_driver_cmsis_uart true) in config.cmake to use this component message("driver_cmsis_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_uart_dma AND (CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_uart 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/uart/fsl_uart_cmsis.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/uart/. ) else() message(SEND_ERROR "driver_cmsis_uart.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_i2c_dma) # Add set(CONFIG_USE_driver_i2c_dma true) in config.cmake to use this component message("driver_i2c_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_dma AND CONFIG_USE_driver_i2c) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/fsl_i2c_dma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/. ) else() message(SEND_ERROR "driver_i2c_dma.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_lpuart_dma) # Add set(CONFIG_USE_driver_lpuart_dma true) in config.cmake to use this component message("driver_lpuart_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_dma AND CONFIG_USE_driver_lpuart) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/fsl_lpuart_dma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/lpuart/. ) else() message(SEND_ERROR "driver_lpuart_dma.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_spi_dma) # Add set(CONFIG_USE_driver_spi_dma true) in config.cmake to use this component message("driver_spi_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_dma AND CONFIG_USE_driver_spi) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/fsl_spi_dma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/. ) else() message(SEND_ERROR "driver_spi_dma.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_uart_dma) # Add set(CONFIG_USE_driver_uart_dma true) in config.cmake to use this component message("driver_uart_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_dma AND CONFIG_USE_driver_uart) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/fsl_uart_dma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/. ) else() message(SEND_ERROR "driver_uart_dma.MKM35Z7 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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_device_MKM35Z7_system) # Add set(CONFIG_USE_device_MKM35Z7_system true) in config.cmake to use this component message("device_MKM35Z7_system component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_device_MKM35Z7_CMSIS) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/./system_MKM35Z7.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/./. ) else() message(SEND_ERROR "device_MKM35Z7_system.MKM35Z7 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 AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/. ) else() message(SEND_ERROR "utility_assert.MKM35Z7 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 AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/fsl_assert.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../utilities/assert/. ) else() message(SEND_ERROR "utility_assert_lite.MKM35Z7 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.MKM35Z7 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 AND CONFIG_USE_utility_str) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console/fsl_debug_console.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../utilities/debug_console ) else() message(SEND_ERROR "utility_debug_console.MKM35Z7 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.MKM35Z7 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.MKM35Z7 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.MKM35Z7 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.MKM35Z7 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.MKM35Z7 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.MKM35Z7 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)) 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.MKM35Z7 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.MKM35Z7 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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_slcd_engine) # Add set(CONFIG_USE_driver_slcd_engine true) in config.cmake to use this component message("driver_slcd_engine component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_slcd_gdh_1247wp) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/slcd_engine/slcd_engine.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/slcd_engine/. ) else() message(SEND_ERROR "driver_slcd_engine.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_slcd_gdh_1247wp) # Add set(CONFIG_USE_driver_slcd_gdh_1247wp true) in config.cmake to use this component message("driver_slcd_gdh_1247wp component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_BOARD STREQUAL twrkm35z75m)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/slcd_engine/GDH-1247WP/GDH-1247WP.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/slcd_engine/GDH-1247WP/. ) if(CONFIG_USE_COMPONENT_CONFIGURATION) message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC -DSLCD_PANEL_GDH_1247WP_H ) endif() else() message(SEND_ERROR "driver_slcd_gdh_1247wp.MKM35Z7 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/. ) if(CONFIG_USE_COMPONENT_CONFIGURATION) message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC -DTIMER_PORT_TYPE_LPTMR=1 ) endif() else() message(SEND_ERROR "component_lptmr_adapter.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_pit_adapter) # Add set(CONFIG_USE_component_pit_adapter true) in config.cmake to use this component message("component_pit_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_pit) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/fsl_adapter_pit.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/timer/. ) if(CONFIG_USE_COMPONENT_CONFIGURATION) message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}") target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC -DTIMER_PORT_TYPE_PIT=1 ) endif() else() message(SEND_ERROR "component_pit_adapter.MKM35Z7 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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_component_uart_adapter) # Add set(CONFIG_USE_component_uart_adapter true) in config.cmake to use this component message("component_uart_adapter component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND CONFIG_USE_driver_uart) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/fsl_adapter_uart.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../components/uart/. ) else() message(SEND_ERROR "component_uart_adapter.MKM35Z7 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_MKM35Z7_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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_adc16) # Add set(CONFIG_USE_driver_adc16 true) in config.cmake to use this component message("driver_adc16 component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc16/fsl_adc16.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/adc16/. ) else() message(SEND_ERROR "driver_adc16.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_afe) # Add set(CONFIG_USE_driver_afe true) in config.cmake to use this component message("driver_afe component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/afe/fsl_afe.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/afe/. ) else() message(SEND_ERROR "driver_afe.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_cmp) # Add set(CONFIG_USE_driver_cmp true) in config.cmake to use this component message("driver_cmp component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cmp/fsl_cmp.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/cmp/. ) else() message(SEND_ERROR "driver_cmp.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_dma) # Add set(CONFIG_USE_driver_dma true) in config.cmake to use this component message("driver_dma component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_dmamux AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dma/fsl_dma.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/dma/. ) else() message(SEND_ERROR "driver_dma.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 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.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_i2c) # Add set(CONFIG_USE_driver_i2c true) in config.cmake to use this component message("driver_i2c component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/fsl_i2c.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/. ) else() message(SEND_ERROR "driver_i2c.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_i2c_freertos) # Add set(CONFIG_USE_driver_i2c_freertos true) in config.cmake to use this component message("driver_i2c_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_i2c AND CONFIG_USE_middleware_freertos-kernel) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c/fsl_i2c_freertos.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/drivers/. ) else() message(SEND_ERROR "driver_i2c_freertos.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_irtc) # Add set(CONFIG_USE_driver_irtc true) in config.cmake to use this component message("driver_irtc component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/irtc/fsl_irtc.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/irtc/. ) else() message(SEND_ERROR "driver_irtc.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_llwu) # Add set(CONFIG_USE_driver_llwu true) in config.cmake to use this component message("driver_llwu component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/llwu/fsl_llwu.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/llwu/. ) else() message(SEND_ERROR "driver_llwu.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 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/. ) else() message(SEND_ERROR "driver_lpuart_freertos.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_mmau) # Add set(CONFIG_USE_driver_mmau true) in config.cmake to use this component message("driver_mmau component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mmau/fsl_mmau.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/mmau/. ) else() message(SEND_ERROR "driver_mmau.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_pit) # Add set(CONFIG_USE_driver_pit true) in config.cmake to use this component message("driver_pit component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/fsl_pit.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/pit/. ) else() message(SEND_ERROR "driver_pit.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_qtmr_2) # Add set(CONFIG_USE_driver_qtmr_2 true) in config.cmake to use this component message("driver_qtmr_2 component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_2/fsl_qtmr.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/qtmr_2/. ) else() message(SEND_ERROR "driver_qtmr_2.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_rnga) # Add set(CONFIG_USE_driver_rnga true) in config.cmake to use this component message("driver_rnga component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rnga/fsl_rnga.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/rnga/. ) else() message(SEND_ERROR "driver_rnga.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_slcd) # Add set(CONFIG_USE_driver_slcd true) in config.cmake to use this component message("driver_slcd component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/slcd/fsl_slcd.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/slcd/. ) else() message(SEND_ERROR "driver_slcd.MKM35Z7 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 MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) 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.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_spi) # Add set(CONFIG_USE_driver_spi true) in config.cmake to use this component message("driver_spi component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/fsl_spi.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/. ) else() message(SEND_ERROR "driver_spi.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_spi_freertos) # Add set(CONFIG_USE_driver_spi_freertos true) in config.cmake to use this component message("driver_spi_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_spi AND CONFIG_USE_middleware_freertos-kernel) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/spi/fsl_spi_freertos.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/drivers/. ) else() message(SEND_ERROR "driver_spi_freertos.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_sysmpu) # Add set(CONFIG_USE_driver_sysmpu true) in config.cmake to use this component message("driver_sysmpu component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sysmpu/fsl_sysmpu.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/sysmpu/. ) else() message(SEND_ERROR "driver_sysmpu.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_uart) # Add set(CONFIG_USE_driver_uart true) in config.cmake to use this component message("driver_uart component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_common AND (CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7)) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/fsl_uart.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/. ) else() message(SEND_ERROR "driver_uart.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_uart_freertos) # Add set(CONFIG_USE_driver_uart_freertos true) in config.cmake to use this component message("driver_uart_freertos component is included from ${CMAKE_CURRENT_LIST_FILE}.") if(CONFIG_USE_driver_uart AND CONFIG_USE_middleware_freertos-kernel) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/uart/fsl_uart_freertos.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/drivers/. ) else() message(SEND_ERROR "driver_uart_freertos.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_vref) # Add set(CONFIG_USE_driver_vref true) in config.cmake to use this component message("driver_vref component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/vref/fsl_vref.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/vref/. ) else() message(SEND_ERROR "driver_vref.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_wdog) # Add set(CONFIG_USE_driver_wdog true) in config.cmake to use this component message("driver_wdog component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog/fsl_wdog.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/wdog/. ) else() message(SEND_ERROR "driver_wdog.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif() if (CONFIG_USE_driver_xbar) # Add set(CONFIG_USE_driver_xbar true) in config.cmake to use this component message("driver_xbar component is included from ${CMAKE_CURRENT_LIST_FILE}.") if((CONFIG_DEVICE_ID STREQUAL MKM35Z512xxx7 OR CONFIG_DEVICE_ID STREQUAL MKM35Z256xxx7) AND CONFIG_USE_driver_common) target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbar/fsl_xbar.c ) target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../drivers/xbar/. ) else() message(SEND_ERROR "driver_xbar.MKM35Z7 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.") endif() endif()