aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phylan8720a/driver_phy-device-lan8720a.cmake
blob: b88fbb431f3fd37b599062b91e1c84dc3d2a8fd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if(NOT DRIVER_PHY-DEVICE-LAN8720A_INCLUDED)

    set(DRIVER_PHY-DEVICE-LAN8720A_INCLUDED true CACHE BOOL "driver_phy-device-lan8720a component is included.")

    target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
        ${CMAKE_CURRENT_LIST_DIR}/fsl_phylan8720a.c
    )

    target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE
        ${CMAKE_CURRENT_LIST_DIR}/.
    )

    #OR Logic component
    if(${MCUX_DEVICE} STREQUAL "LPC54628")
        include(driver_phy-common)
    endif()
    if(${MCUX_DEVICE} STREQUAL "LPC54S018")
        include(driver_phy-common)
    endif()
    if(${MCUX_DEVICE} STREQUAL "LPC54S018M")
        include(driver_phy-common)
    endif()


endif()