Skip to content

Commit c9d4fd5

Browse files
YaochengerRbb666
authored andcommitted
remove useless code
1 parent a4a5953 commit c9d4fd5

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

Diff for: bsp/wch/risc-v/Libraries/ch32_drivers/drv_eth.c

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
/*
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
53
*
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
95
*
106
* Change Logs:
117
* Date Author Notes
12-
* 2021-09-09 WCH the first version
8+
* 2021-09-09 WCH the first version
139
*/
1410

1511
#include "board.h"
@@ -21,7 +17,6 @@
2117
#include "lwipopts.h"
2218
#include <drv_eth.h>
2319

24-
//#define DRV_DEBUG
2520
#define LOG_TAG "drv.eth"
2621
#include <drv_log.h>
2722

Diff for: bsp/wch/risc-v/Libraries/ch32_drivers/drv_eth.h

+4-15
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
/*
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
53
*
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
95
*
106
* Change Logs:
117
* Date Author Notes
12-
* 2021-09-09 WCH the first version
8+
* 2021-09-09 WCH the first version
139
*/
10+
1411
#ifndef __DRV_ETH_H__
1512
#define __DRV_ETH_H__
1613
#include "rthw.h"
@@ -26,20 +23,12 @@
2623
#define USE_GIGA_MAC
2724
#ifndef USE_GIGA_MAC
2825
#define USE_FAST_MAC
29-
//#define USE_RMII
3026
#endif
3127
#endif
3228

3329
#define ETH_RXBUFNB 6
3430
#define ETH_TXBUFNB 6
3531

36-
#if 0
37-
#define USE_LOOP_STRUCT 1
38-
#else
39-
#define USE_CHAIN_STRUCT 1
40-
#endif
41-
42-
4332
typedef struct
4433
{
4534
u32 length;

0 commit comments

Comments
 (0)