diff --git a/.gitmodules b/.gitmodules index 66dc699..745f408 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "Modules/embfmt"] path = Modules/embfmt - url = git@epagris.com:epagris/embfmt.git + url = https://gitea.epagris.com/epagris/embfmt [submodule "Modules/lwip"] path = Modules/lwip url = https://github.com/lwip-tcpip/lwip.git @@ -9,7 +9,7 @@ url = https://github.com/STMicroelectronics/stm32h7xx-hal-driver.git [submodule "Modules/flexptp"] path = Modules/flexptp - url = git@epagris.com:epagris/flexPTP.git + url = https://github.com/epagris/flexPTP [submodule "Modules/etherlib"] path = Modules/etherlib - url = git@epagris.com:epagris/EtherLib.git + url = https://gitea.epagris.com/epagris/EtherLib diff --git a/Inc/lwipopts.h b/Inc/lwipopts.h index 80486c9..79aca5a 100644 --- a/Inc/lwipopts.h +++ b/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/LICENSE b/LICENSE index 0b6be49..9ec73a2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 András Wiesner +Copyright (c) 2025 András Wiesner Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Modules/CMakeLists.txt b/Modules/CMakeLists.txt index 0a08cd7..e07c07f 100644 --- a/Modules/CMakeLists.txt +++ b/Modules/CMakeLists.txt @@ -59,4 +59,5 @@ set(FLEXPTP_INCLUDES ${include_dirs} ${LWIP_DIR}/src/include ${LWIP_PORT_DIR}/in set(FLEXPTP_CPU_PARAMS ${cpu_PARAMS}) set(FLEXPTP_COMPILE_DEFS ${symbols_c_SYMB}) add_subdirectory(flexptp) +target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC ${FLEXPTP_INCLUDE_EXPORT}) target_link_libraries(${CMAKE_PROJECT_NAME} flexptp) diff --git a/Modules/flexptp b/Modules/flexptp index 38614b7..33b40f2 160000 --- a/Modules/flexptp +++ b/Modules/flexptp @@ -1 +1 @@ -Subproject commit 38614b719446f62a7e1d210a994755b88e30fdbf +Subproject commit 33b40f2eed4b2c725cbc2a9ed30b4fc928755878 diff --git a/README.md b/README.md index fec1b08..dd2bdcc 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,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-H743ZI2.git +git clone https://github.com/epagris/flexPTP-demo-NUCLEO-H743ZI cd flexPTP-demo-NUCLEO-H743ZI2 git submodule init git submodule update @@ -192,7 +192,7 @@ ptp priority [ ] Print or set clock priority f ## License -The project is created by András Wiesner (Epagris) in 2025 and published under the MIT license. Contributions are welcome! :) +The project was created by András Wiesner (Epagris) in 2025 and published under the MIT license. Contributions are welcome! :)