Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ set(FREERTOS_PLUS_TCP_NETWORK_IF "" CACHE STRING "FreeRTOS Plus TCP Network Inte
set(FREERTOS_PLUS_TCP_NETWORK_IF_LIST
A_CUSTOM_NETWORK_IF
ATSAM43 ATSAME5x # AT
CMSIS
DRIVER_SAM
ESP32
KSZ8851SNL
Expand Down Expand Up @@ -99,6 +100,7 @@ if(NOT FREERTOS_PLUS_TCP_NETWORK_IF IN_LIST FREERTOS_PLUS_TCP_NETWORK_IF_LIST )
" A_CUSTOM_NETWORK_IF Target: User Defined\n"
" ATSAM4E Target: ATSAM4E Tested: TODO\n"
" ATSAME5x Target: ATSAME5x Tested: TODO\n"
" CMSIS Target: Generic CMSIS Driver Tested: TODO\n"
" DRIVER_SAM Target: Driver SAM Tested: TODO\n"
" ESP32 Target: ESP-32 Tested: TODO\n"
" KSZ8851SNL Target: ksz8851snl Tested: TODO\n"
Expand Down Expand Up @@ -183,4 +185,4 @@ endif()

if(PROJECT_IS_TOP_LEVEL)
FetchContent_MakeAvailable(freertos_kernel cmock)
endif()
endif()
52 changes: 52 additions & 0 deletions source/portable/NetworkInterface/CMSIS/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2024 Arm Limited and/or its affiliates
# <open-source-office@arm.com>
# SPDX-License-Identifier: MIT

if (NOT (FREERTOS_PLUS_TCP_NETWORK_IF STREQUAL "CMSIS") )
return()
endif()

# Optional:
# - FREERTOS_PLUS_TCP_CMSIS_DRIVER_SOURCES:
# Semicolon-separated list of board-specific CMSIS MAC/PHY driver sources
# (example: EMAC_STM32F7xx.c;PHY_LAN8742A.c)
# - FREERTOS_PLUS_TCP_CMSIS_DRIVER_INCLUDE_DIRS:
# Semicolon-separated include directories required by those drivers
set(FREERTOS_PLUS_TCP_CMSIS_DRIVER_SOURCES "" CACHE STRING "Extra CMSIS MAC/PHY driver source files")
set(FREERTOS_PLUS_TCP_CMSIS_DRIVER_INCLUDE_DIRS "" CACHE STRING "Extra include directories for CMSIS MAC/PHY drivers")

#------------------------------------------------------------------------------
add_library( freertos_plus_tcp_network_if STATIC )

target_sources( freertos_plus_tcp_network_if
PRIVATE
NetworkInterface.c
)

target_include_directories( freertos_plus_tcp_network_if
PRIVATE
Driver/Include
)

if(FREERTOS_PLUS_TCP_CMSIS_DRIVER_SOURCES)
target_sources( freertos_plus_tcp_network_if
PRIVATE
${FREERTOS_PLUS_TCP_CMSIS_DRIVER_SOURCES}
)
endif()

if(FREERTOS_PLUS_TCP_CMSIS_DRIVER_INCLUDE_DIRS)
target_include_directories( freertos_plus_tcp_network_if
PRIVATE
${FREERTOS_PLUS_TCP_CMSIS_DRIVER_INCLUDE_DIRS}
)
endif()

target_link_libraries( freertos_plus_tcp_network_if
PUBLIC
freertos_plus_tcp_port
freertos_plus_tcp_network_if_common
PRIVATE
freertos_kernel
freertos_plus_tcp
)
Loading