c++ implementation of a non-conforming ptp clock (slave only for now)
- sends a delay req per sync (since I don't know if delay reqs need to be statistically distributed)
- no master timeout removal (since I don't know the specs for this to conform)
- see file microptp/ports/systemport.hpp for the system port api, see included port onethread for a sample implementation using stmlib on a stm32f407
- feel free to donate a copy of the spec ;)
- no runtime floating point (constexpr only through fixed point lib)
memory footprint
- text: 40.6 kb including ethernet driver, lwip with dhcp and the stmlib ptp port. (O3, lto, arm gcc 4.9)
- text: 9 kb for microptp alone
- bss : 48 kb including 25kb lwip heap+buffers, 8kb stmlib rx buffers, 4kb net thread stack (can be tuned down...)
- bss : 1,23kb for microptp alone
relies on these libraries
- microlib (https://github.com/decimad/microlib)
- fixed point lib (https://github.com/decimad/fixed)
- (stmlib (https://github.com/decimad/stmlib) for the two included ports)