From 9f5123f0a177077798745e8f0537e9a7e9bd9a7b Mon Sep 17 00:00:00 2001 From: Pradeep HN Date: Mon, 11 Nov 2024 12:18:08 +0530 Subject: [PATCH] allsoc: enet: Fix TSN ICSSG Buid Error - EnetApp_destroyRxTask and EnetApp_createRxTask APIs are different between CPSW and ICSSG. Keeping the prototype in the comomon header does not work. This PR removes the defination from the common header which is nrt_flow/datapath.h Fixes: MCUSDK-13757 Signed-off-by: Pradeep HN --- examples/tsn/enetapp_icssg.h | 2 +- examples/tsn/nrt_flow/dataflow.h | 2 -- examples/tsn/tsnapp_lwip_icssg_main.c | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/tsn/enetapp_icssg.h b/examples/tsn/enetapp_icssg.h index c458dd76..5cdd09dc 100644 --- a/examples/tsn/enetapp_icssg.h +++ b/examples/tsn/enetapp_icssg.h @@ -38,7 +38,7 @@ /* ========================================================================== */ #define ENETAPP_PORT_MAX (ENET_SYSCFG_NUM_EXT_MAC_PORTS) - +#define MAX_NUM_MAC_PORTS ENETAPP_PORT_MAX #define ENETAPP_ICSSG_INSTANCE_MAX (2U) #define ENETAPP_PER_MAX (ENETAPP_ICSSG_INSTANCE_MAX) diff --git a/examples/tsn/nrt_flow/dataflow.h b/examples/tsn/nrt_flow/dataflow.h index 976e76cb..1538eda6 100644 --- a/examples/tsn/nrt_flow/dataflow.h +++ b/examples/tsn/nrt_flow/dataflow.h @@ -66,8 +66,6 @@ /* ========================================================================== */ /* Function Declarations */ /* ========================================================================== */ -void EnetApp_destroyRxTask(); -void EnetApp_createRxTask(); int EnetApp_lldCfgUpdateCb(cb_socket_lldcfg_update_t *update_cfg); void rxDefaultDataCb(void *data, int size, int port, void *cbArg); diff --git a/examples/tsn/tsnapp_lwip_icssg_main.c b/examples/tsn/tsnapp_lwip_icssg_main.c index 757371fa..5543d2eb 100644 --- a/examples/tsn/tsnapp_lwip_icssg_main.c +++ b/examples/tsn/tsnapp_lwip_icssg_main.c @@ -64,7 +64,7 @@ #include "debug_log.h" #include "nrt_flow/dataflow.h" #include "tsninit.h" - +#include "enetapp_icssg.h" /* ========================================================================== */ /* Macros & Typedefs */ /* ========================================================================== */