1#Description: I2C CMSIS Driver; user_visible: True 2include_guard(GLOBAL) 3message("driver_cmsis_i2c component is included.") 4 5target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE 6 ${CMAKE_CURRENT_LIST_DIR}/fsl_i2c_cmsis.c 7) 8 9target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC 10 ${CMAKE_CURRENT_LIST_DIR}/. 11) 12 13#OR Logic component 14if(${MCUX_DEVICE} STREQUAL "MK22F12810") 15 include(driver_i2c_edma) 16endif() 17if(${MCUX_DEVICE} STREQUAL "MKV10Z1287") 18 include(driver_i2c_edma) 19endif() 20if(${MCUX_DEVICE} STREQUAL "K32L2B31A") 21 include(driver_i2c_dma) 22endif() 23if(${MCUX_DEVICE} STREQUAL "MKM14ZA5") 24 include(driver_i2c_dma) 25endif() 26if(${MCUX_DEVICE} STREQUAL "MKV11Z7") 27 include(driver_i2c_edma) 28endif() 29if(${MCUX_DEVICE} STREQUAL "MKV31F51212") 30 include(driver_i2c_edma) 31endif() 32if(${MCUX_DEVICE} STREQUAL "MK22F51212") 33 include(driver_i2c_edma) 34endif() 35if(${MCUX_DEVICE} STREQUAL "MKM34ZA5") 36 include(driver_i2c_dma) 37endif() 38if(${MCUX_DEVICE} STREQUAL "MKE02Z4") 39 include(driver_i2c) 40endif() 41if(${MCUX_DEVICE} STREQUAL "MKV10Z7") 42 include(driver_i2c_edma) 43endif() 44if(${MCUX_DEVICE} STREQUAL "K32L2B11A") 45 include(driver_i2c_dma) 46endif() 47if(${MCUX_DEVICE} STREQUAL "MK02F12810") 48 include(driver_i2c_edma) 49endif() 50if(${MCUX_DEVICE} STREQUAL "MK22F25612") 51 include(driver_i2c_edma) 52endif() 53if(${MCUX_DEVICE} STREQUAL "MKM35Z7") 54 include(driver_i2c_dma) 55endif() 56if(${MCUX_DEVICE} STREQUAL "K32L2B21A") 57 include(driver_i2c_dma) 58endif() 59if(${MCUX_DEVICE} STREQUAL "MKM34Z7") 60 include(driver_i2c_dma) 61endif() 62if(${MCUX_DEVICE} STREQUAL "MKV31F12810") 63 include(driver_i2c_edma) 64endif() 65if(${MCUX_DEVICE} STREQUAL "MKM33ZA5") 66 include(driver_i2c_dma) 67endif() 68if(${MCUX_DEVICE} STREQUAL "MKV31F25612") 69 include(driver_i2c_edma) 70endif() 71if(${MCUX_DEVICE} STREQUAL "MKV30F12810") 72 include(driver_i2c_edma) 73endif() 74if(${MCUX_DEVICE} STREQUAL "MK64F12") 75 include(driver_i2c_edma) 76endif() 77if(${MCUX_DEVICE} STREQUAL "MK63F12") 78 include(driver_i2c_edma) 79endif() 80if(${MCUX_DEVICE} STREQUAL "MK24F12") 81 include(driver_i2c_edma) 82endif() 83if(${MCUX_DEVICE} STREQUAL "MK66F18") 84 include(driver_i2c_edma) 85endif() 86if(${MCUX_DEVICE} STREQUAL "MK65F18") 87 include(driver_i2c_edma) 88endif() 89if(${MCUX_DEVICE} STREQUAL "MK26F18") 90 include(driver_i2c_edma) 91endif() 92if(${MCUX_DEVICE} STREQUAL "MKE06Z4") 93 include(driver_i2c) 94endif() 95if(${MCUX_DEVICE} STREQUAL "MKE04Z1284") 96 include(driver_i2c) 97endif() 98 99include(CMSIS_Driver_Include_I2C) 100include(driver_i2c_edma) 101