eth_config.h 814 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (C) 2022-2024, Xiaohua Semiconductor Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-04-28 CDT first version
  9. */
  10. #ifndef __ETH_CONFIG_H__
  11. #define __ETH_CONFIG_H__
  12. #include <rtthread.h>
  13. #include "irq_config.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #if defined(BSP_USING_ETH)
  18. #ifndef ETH_IRQ_CONFIG
  19. #define ETH_IRQ_CONFIG \
  20. { \
  21. .irq_num = BSP_ETH_IRQ_NUM, \
  22. .irq_prio = BSP_ETH_IRQ_PRIO, \
  23. .int_src = INT_SRC_ETH_GLB_INT, \
  24. }
  25. #endif /* ETH_IRQ_CONFIG */
  26. #endif
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif /* __ETH_CONFIG_H__ */