From 08baaf2a6221118782844012916a3d4620976b2e Mon Sep 17 00:00:00 2001 From: Epagris Date: Tue, 24 Jun 2025 19:52:07 +0200 Subject: [PATCH] - flexPTP updated - README updated --- .gitmodules | 4 ++-- CM4/CMakeLists.txt | 1 + CM4/Inc/lwipopts.h | 4 ++++ CM4/Modules/flexptp | 2 +- README.md | 4 ++-- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitmodules b/.gitmodules index 9a2c2df..4a2a875 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,9 +1,9 @@ [submodule "CM4/Modules/etherlib"] path = CM4/Modules/etherlib - url = git@epagris.com:epagris/EtherLib.git + url = https://gitea.epagris.com/epagris/EtherLib [submodule "CM4/Modules/flexptp"] path = CM4/Modules/flexptp - url = git@epagris.com:epagris/flexPTP.git + url = https://github.com/epagris/flexPTP [submodule "Common/Middlewares/FreeRTOS"] path = Common/Middlewares/FreeRTOS url = https://gitea.epagris.com/epagris/FreeRTOS-Kernel-CustomTag.git diff --git a/CM4/CMakeLists.txt b/CM4/CMakeLists.txt index f5b0d1b..b1e33fd 100644 --- a/CM4/CMakeLists.txt +++ b/CM4/CMakeLists.txt @@ -196,6 +196,7 @@ set(FLEXPTP_CPU_PARAMS ${cpu_PARAMS}) set(FLEXPTP_COMPILE_DEFS ${comp_defs}) add_subdirectory(Modules/flexptp) target_link_libraries(${CM4_TARGET} flexptp) +target_include_directories(${CM4_TARGET} PUBLIC ${FLEXPTP_INCLUDE_EXPORT}) # Add sources to executable target_sources(${CM4_TARGET} PUBLIC ${sources_SRCS}) diff --git a/CM4/Inc/lwipopts.h b/CM4/Inc/lwipopts.h index 80486c9..79aca5a 100644 --- a/CM4/Inc/lwipopts.h +++ b/CM4/Inc/lwipopts.h @@ -38,6 +38,7 @@ * NO_SYS==1: Provides VERY minimal functionality. Otherwise, * use lwIP facilities. */ +#include #define NO_SYS 0 /* ---------- Memory options ---------- */ @@ -95,6 +96,9 @@ a lot of data that needs to be copied, this should be set high. */ #define LWIP_SUPPORT_CUSTOM_PBUF 1 /* --------- Ethernet hooks --------- */ +struct netif; +struct pbuf; +extern int8_t hook_unknown_ethertype(struct pbuf *pbuf, struct netif *netif); #define LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(pbuf,netif) hook_unknown_ethertype(pbuf,netif) /* ---------- IPv4 options ---------- */ diff --git a/CM4/Modules/flexptp b/CM4/Modules/flexptp index 38614b7..33b40f2 160000 --- a/CM4/Modules/flexptp +++ b/CM4/Modules/flexptp @@ -1 +1 @@ -Subproject commit 38614b719446f62a7e1d210a994755b88e30fdbf +Subproject commit 33b40f2eed4b2c725cbc2a9ed30b4fc928755878 diff --git a/README.md b/README.md index 4934cee..d0386d5 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Still not clear what is it useful for? No worries, it's a behind-the-scenes supp > To acquire the full source tree after cloning the repo, please fetch the linked *submodules* as well: ``` -git clone https://gitea.epagris.com/epagris/flexPTP-demo-NUCLEO-H745ZI-Q.git +git clone https://github.com/epagris/flexPTP-demo-NUCLEO-H745ZI-Q cd flexPTP-demo-NUCLEO-H745ZI-Q git submodule init git submodule update @@ -180,7 +180,7 @@ ptp log {def|corr|ts|info|locked|bmca} {on|off} Turn on or off logging time [ns] Print time ptp master [[un]prefer] [clockid] Master clock settings ptp info Print PTP info -ptp domain [domain] Print or get PTP domain +ptp domain [domain] Print or set PTP domain ptp addend [addend] Print or set addend ptp transport [{ipv4|802.3}] Set or get PTP transport layer ptp delmech [{e2e|p2p}] Set or get PTP delay mechanism