tsn_ptp_config.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*!
  2. * Copyright (C) Fraunhofer-Institut for Photonic Microsystems (IPMS)
  3. * Maria-Reiche-Str. 2
  4. * 01109 Dresden
  5. *
  6. * Unauthorized copying of this file, via any medium is strictly prohibited
  7. * Proprietary and confidential
  8. *
  9. * \file tsn_ptp_config.h
  10. * \author zimmerli
  11. * \date 2019-03-08
  12. * \brief IEEE 802.1as software protocol stack configuration
  13. *
  14. */
  15. #ifndef TSN_PTP_CONFIG_H_
  16. #define TSN_PTP_CONFIG_H_
  17. /**
  18. * DEFINE TSN_PTP_CFG_PORTNUM
  19. *
  20. * Static maximum number of ports used by the PTP stack
  21. */
  22. #define TSN_PTP_CFG_PORTNUM 4
  23. /**
  24. * DEFINE TSN_PTP_CFG_INSTANCENUM
  25. *
  26. * Static maximum number of PTP instances used by the PTP stack
  27. */
  28. #define TSN_PTP_CFG_INSTANCENUM 2
  29. /**
  30. * DEFINE TSN_PTP_CFG_FOLLOWUP_TLV_ORG_CHECK
  31. *
  32. * check OrganizationId of the TLV in FollowUp frame
  33. * uncomment to skip this check
  34. *
  35. * introduced due to Spirent 802.1as Bug (2019/03)
  36. */
  37. #define TSN_PTP_CFG_FOLLOWUP_TLV_ORG_CHECK
  38. /**
  39. * DEFINE TSN_PTP_CFG_PATHTRACE_MAX
  40. *
  41. * maximum number of pathtrace elements to be used
  42. * each element consumes 8 Bytes of memory
  43. */
  44. #define TSN_PTP_CFG_PATHTRACE_MAX 16
  45. #endif /* TSN_PTP_CONFIG_H_ */