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 11 #ifndef __ETH_CONFIG_H__ 12 #define __ETH_CONFIG_H__ 13 14 #include <rtthread.h> 15 #include "irq_config.h" 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 22 #if defined(BSP_USING_ETH) 23 24 #ifndef ETH_IRQ_CONFIG 25 #define ETH_IRQ_CONFIG \ 26 { \ 27 .irq_num = BSP_ETH_IRQ_NUM, \ 28 .irq_prio = BSP_ETH_IRQ_PRIO, \ 29 .int_src = INT_SRC_ETH_GLB_INT, \ 30 } 31 #endif /* ETH_IRQ_CONFIG */ 32 33 #endif 34 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif /* __ETH_CONFIG_H__ */ 41