sam_gmac.h 780 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c)
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Email Notes
  8. * 2022-04-11 Kevin.Liu kevin.liu.mchp@gmail.com First Release
  9. */
  10. #ifndef __BOARD_SAM_GMAC_H_
  11. #define __BOARD_SAM_GMAC_H_
  12. #include <rtthread.h>
  13. /**
  14. * @brief GMAC duplex type
  15. */
  16. typedef enum
  17. {
  18. GMAC_HALF_DUPLEX = 0x00, /*!< half duplex */
  19. GMAC_FULL_DUPLEX = 0x01 /*!< full duplex */
  20. } gmac_duplex_type;
  21. /**
  22. * @brief GMAC speed type
  23. */
  24. typedef enum
  25. {
  26. GMAC_SPEED_10MBPS = 0x00, /*!< 10 mbps */
  27. GMAC_SPEED_100MBPS = 0x01 /*!< 100 mbps */
  28. } gmac_speed_type;
  29. #define CONF_AT24MAC_ADDRESS 0x57
  30. #endif // __BOARD_SAM_GMAC_H_