summaryrefslogtreecommitdiff
path: root/bsp/hc32/ev_hc32f4a2_lqfp176/board/config/eth_config.h
blob: d09aecfa6decba9ad1b20a6168cf2f5c44e8a54b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * Copyright (C) 2022-2026, Xiaohua Semiconductor Co., Ltd.
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2026-05-27     CDT          first version
 */

#ifndef __ETH_CONFIG_H__
#define __ETH_CONFIG_H__

#include <rtthread.h>
#include "irq_config.h"

#ifdef __cplusplus
extern "C" {
#endif


#if defined(BSP_USING_ETH)

#ifndef ETH_IRQ_CONFIG
#define ETH_IRQ_CONFIG                  \
    {                                   \
        .irq_num = BSP_ETH_IRQ_NUM,     \
        .irq_prio = BSP_ETH_IRQ_PRIO,   \
        .int_src = INT_SRC_ETH_GLB_INT, \
    }
#endif /* ETH_IRQ_CONFIG */

#endif


#ifdef __cplusplus
}
#endif

#endif /* __ETH_CONFIG_H__ */