- lwipopts.h updated
- README, LICENSE updated - flexPTP updated
This commit is contained in:
parent
61b58ac762
commit
107c167738
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -1,15 +1,15 @@
|
|||||||
[submodule "Modules/embfmt"]
|
[submodule "Modules/embfmt"]
|
||||||
path = Modules/embfmt
|
path = Modules/embfmt
|
||||||
url = git@epagris.com:epagris/embfmt.git
|
url = https://gitea.epagris.com/epagris/embfmt
|
||||||
[submodule "Modules/lwip"]
|
[submodule "Modules/lwip"]
|
||||||
path = Modules/lwip
|
path = Modules/lwip
|
||||||
url = https://github.com/lwip-tcpip/lwip.git
|
url = https://github.com/lwip-tcpip/lwip.git
|
||||||
[submodule "Modules/etherlib"]
|
[submodule "Modules/etherlib"]
|
||||||
path = Modules/etherlib
|
path = Modules/etherlib
|
||||||
url = git@epagris.com:epagris/EtherLib.git
|
url = https://gitea.epagris.com/epagris/EtherLib
|
||||||
[submodule "Drivers/stm32f7xx-hal-driver"]
|
[submodule "Drivers/stm32f7xx-hal-driver"]
|
||||||
path = Drivers/stm32f7xx-hal-driver
|
path = Drivers/stm32f7xx-hal-driver
|
||||||
url = https://github.com/STMicroelectronics/stm32f7xx-hal-driver.git
|
url = https://github.com/STMicroelectronics/stm32f7xx-hal-driver.git
|
||||||
[submodule "Modules/flexptp"]
|
[submodule "Modules/flexptp"]
|
||||||
path = Modules/flexptp
|
path = Modules/flexptp
|
||||||
url = git@epagris.com:epagris/flexPTP.git
|
url = https://github.com/epagris/flexPTP
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
* NO_SYS==1: Provides VERY minimal functionality. Otherwise,
|
* NO_SYS==1: Provides VERY minimal functionality. Otherwise,
|
||||||
* use lwIP facilities.
|
* use lwIP facilities.
|
||||||
*/
|
*/
|
||||||
|
#include <stdint.h>
|
||||||
#define NO_SYS 0
|
#define NO_SYS 0
|
||||||
|
|
||||||
/* ---------- Memory options ---------- */
|
/* ---------- 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
|
#define LWIP_SUPPORT_CUSTOM_PBUF 1
|
||||||
|
|
||||||
/* --------- Ethernet hooks --------- */
|
/* --------- 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)
|
#define LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(pbuf,netif) hook_unknown_ethertype(pbuf,netif)
|
||||||
|
|
||||||
/* ---------- IPv4 options ---------- */
|
/* ---------- IPv4 options ---------- */
|
||||||
|
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
MIT License
|
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
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
@ -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_CPU_PARAMS ${cpu_PARAMS})
|
||||||
set(FLEXPTP_COMPILE_DEFS ${symbols_c_SYMB})
|
set(FLEXPTP_COMPILE_DEFS ${symbols_c_SYMB})
|
||||||
add_subdirectory(flexptp)
|
add_subdirectory(flexptp)
|
||||||
|
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC ${FLEXPTP_INCLUDE_EXPORT})
|
||||||
target_link_libraries(${CMAKE_PROJECT_NAME} flexptp)
|
target_link_libraries(${CMAKE_PROJECT_NAME} flexptp)
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 0dc576d1b79381eb00ff6c71d45257c0db8ff4b4
|
Subproject commit 33b40f2eed4b2c725cbc2a9ed30b4fc928755878
|
@ -1,8 +1,5 @@
|
|||||||
# STM32 NUCLEO-F746ZG flexPTP demo
|
# STM32 NUCLEO-F746ZG flexPTP demo
|
||||||
|
|
||||||
<!-- <img src="Modules/flexptp/manual/media/flexPTP_logo.png" alt="flexPTP-logo" width="200">
|
|
||||||
<img src="https://www.st.com/bin/ecommerce/api/image.PF266519.en.feature-description-include-personalized-no-cpn-large.jpg" alt="NUCLEO-F439ZI" width="200"> -->
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## What's this?
|
## What's this?
|
||||||
@ -21,7 +18,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:
|
> 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-F746ZG.git
|
git clone https://github.com/epagris/flexPTP-demo-NUCLEO-F746ZG.git
|
||||||
cd flexPTP-demo-NUCLEO-F746ZG
|
cd flexPTP-demo-NUCLEO-F746ZG
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
@ -154,7 +151,7 @@ ptp log {def|corr|ts|info|locked|bmca} {on|off} Turn on or off logging
|
|||||||
time [ns] Print time
|
time [ns] Print time
|
||||||
ptp master [[un]prefer] [clockid] Master clock settings
|
ptp master [[un]prefer] [clockid] Master clock settings
|
||||||
ptp info Print PTP info
|
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 addend [addend] Print or set addend
|
||||||
ptp transport [{ipv4|802.3}] Set or get PTP transport layer
|
ptp transport [{ipv4|802.3}] Set or get PTP transport layer
|
||||||
ptp delmech [{e2e|p2p}] Set or get PTP delay mechanism
|
ptp delmech [{e2e|p2p}] Set or get PTP delay mechanism
|
||||||
@ -192,7 +189,7 @@ ptp priority [<p1> <p2>] Print or set clock priority f
|
|||||||
|
|
||||||
## License
|
## 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! :)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user