File tree 2 files changed +7
-23
lines changed
bsp/wch/risc-v/Libraries/ch32_drivers
2 files changed +7
-23
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * File : drv_usart.c
3
- * This file is part of RT-Thread RTOS
4
- * COPYRIGHT (C) 2006-2024, RT-Thread Development Team
2
+ * Copyright (c) 2006-2024, RT-Thread Development Team
5
3
*
6
- * The license and distribution terms for this file may be
7
- * found in the file LICENSE in this distribution or at
8
- * http://www.rt-thread.org/license/LICENSE
4
+ * SPDX-License-Identifier: Apache-2.0
9
5
*
10
6
* Change Logs:
11
7
* Date Author Notes
12
- * 2021-09-09 WCH the first version
8
+ * 2021-09-09 WCH the first version
13
9
*/
14
10
15
11
#include "board.h"
21
17
#include "lwipopts.h"
22
18
#include <drv_eth.h>
23
19
24
- //#define DRV_DEBUG
25
20
#define LOG_TAG "drv.eth"
26
21
#include <drv_log.h>
27
22
Original file line number Diff line number Diff line change 1
1
/*
2
- * File : usart.h
3
- * This file is part of RT-Thread RTOS
4
- * COPYRIGHT (C) 2009, RT-Thread Development Team
2
+ * Copyright (c) 2006-2024, RT-Thread Development Team
5
3
*
6
- * The license and distribution terms for this file may be
7
- * found in the file LICENSE in this distribution or at
8
- * http://www.rt-thread.org/license/LICENSE
4
+ * SPDX-License-Identifier: Apache-2.0
9
5
*
10
6
* Change Logs:
11
7
* Date Author Notes
12
- * 2021-09-09 WCH the first version
8
+ * 2021-09-09 WCH the first version
13
9
*/
10
+
14
11
#ifndef __DRV_ETH_H__
15
12
#define __DRV_ETH_H__
16
13
#include "rthw.h"
26
23
#define USE_GIGA_MAC
27
24
#ifndef USE_GIGA_MAC
28
25
#define USE_FAST_MAC
29
- //#define USE_RMII
30
26
#endif
31
27
#endif
32
28
33
29
#define ETH_RXBUFNB 6
34
30
#define ETH_TXBUFNB 6
35
31
36
- #if 0
37
- #define USE_LOOP_STRUCT 1
38
- #else
39
- #define USE_CHAIN_STRUCT 1
40
- #endif
41
-
42
-
43
32
typedef struct
44
33
{
45
34
u32 length ;
You can’t perform that action at this time.
0 commit comments