File tree Expand file tree Collapse file tree 7 files changed +8
-4
lines changed Expand file tree Collapse file tree 7 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ set(BUILD_UNIT_TESTS OFF CACHE BOOL "Build unit tests")
9
9
set (TEST_COVERAGE OFF CACHE BOOL "Compute test coverage" )
10
10
set (ASAN OFF CACHE BOOL "Compile with AddressSanitizer" )
11
11
set (PLATFORM "POSIX" CACHE STRING "Platform to target" )
12
-
13
12
set (EVENT_QUEUE_SIZE 10 CACHE STRING "Static size of the event queue" )
14
13
set (REACTION_QUEUE_SIZE 10 CACHE STRING "Static size of the reaction queue" )
14
+ set (NETWORK_POSIX_TCP OFF CACHE BOOL "Use POSIX TCP NetworkChannel" )
15
15
16
16
# Code coverage setup
17
17
if (TEST_COVERAGE )
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.20.0 )
2
2
set (PLATFORM "POSIX" CACHE STRING "Platform to target" )
3
+ set (NETWORK_POSIX_TCP ON )
3
4
4
5
# Find all .c files in the src directory
5
6
file (GLOB C_FILES "${CMAKE_CURRENT_SOURCE_DIR} /*.c" )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ set(BOARD frdm_k64f)
3
3
find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
4
4
project (reactor-uc-zephyr )
5
5
6
+ set (NETWORK_POSIX_TCP ON )
6
7
set (PLATFORM "ZEPHYR" CACHE STRING "Platform to target" )
7
8
add_subdirectory (../../../../ reactor-uc )
8
9
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ set(BOARD frdm_k64f)
4
4
find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
5
5
project (reactor-uc-zephyr )
6
6
7
+
8
+ set (NETWORK_POSIX_TCP ON )
7
9
set (PLATFORM "ZEPHYR" CACHE STRING "Platform to target" )
8
10
add_subdirectory (../../../../ reactor-uc )
9
11
Original file line number Diff line number Diff line change
1
+ #ifdef NETWORK_POSIX_TCP
2
+ #include "platform/posix/tcp_ip_channel.c"
3
+ #endif
Original file line number Diff line number Diff line change 1
1
#if defined(PLATFORM_POSIX )
2
2
#include "platform/posix/posix.c"
3
- #include "platform/posix/tcp_ip_channel.c"
4
3
#elif defined(PLATFORM_RIOT )
5
- #include "platform/posix/tcp_ip_channel.c"
6
4
#include "platform/riot/riot.c"
7
5
#elif defined(PLATFORM_ZEPHYR )
8
- #include "platform/posix/tcp_ip_channel.c"
9
6
#include "platform/zephyr/zephyr.c"
10
7
#elif defined(PLATFORM_PICO )
11
8
#include "platform/pico/pico.c"
You can’t perform that action at this time.
0 commit comments