2022-05-06 09:28:21 +08:00
|
|
|
/*
|
2022-05-31 11:53:56 +08:00
|
|
|
* Copyright (c) 2006-2022, RT-Thread Development Team
|
|
|
|
* Copyright (c) 2022, Xiaohua Semiconductor Co., Ltd.
|
2022-05-06 09:28:21 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2022-04-28 CDT first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ETH_CONFIG_H__
|
|
|
|
#define __ETH_CONFIG_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
2022-05-15 20:57:35 +08:00
|
|
|
#include "irq_config.h"
|
2022-05-06 09:28:21 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(BSP_USING_ETH)
|
|
|
|
|
|
|
|
#ifndef ETH_IRQ_CONFIG
|
|
|
|
#define ETH_IRQ_CONFIG \
|
|
|
|
{ \
|
2022-05-15 20:57:35 +08:00
|
|
|
.irq_num = BSP_ETH_IRQ_NUM, \
|
|
|
|
.irq_prio = BSP_ETH_IRQ_PRIO, \
|
2022-05-06 09:28:21 +08:00
|
|
|
.int_src = INT_SRC_ETH_GLB_INT, \
|
|
|
|
}
|
|
|
|
#endif /* ETH_IRQ_CONFIG */
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __ETH_CONFIG_H__ */
|