diff --git a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_eth.c b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_eth.c index b46dbe1da4..6aaef7bcc0 100644 --- a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_eth.c +++ b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_eth.c @@ -1,15 +1,11 @@ /* - * File : drv_usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2024, RT-Thread Development Team + * Copyright (c) 2006-2024, RT-Thread Development Team * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rt-thread.org/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes - * 2021-09-09 WCH the first version + * 2021-09-09 WCH the first version */ #include "board.h" @@ -21,7 +17,6 @@ #include "lwipopts.h" #include -//#define DRV_DEBUG #define LOG_TAG "drv.eth" #include diff --git a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_eth.h b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_eth.h index 40c9e5214e..2517e6d5da 100644 --- a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_eth.h +++ b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_eth.h @@ -1,16 +1,13 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development Team + * Copyright (c) 2006-2024, RT-Thread Development Team * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rt-thread.org/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes - * 2021-09-09 WCH the first version + * 2021-09-09 WCH the first version */ + #ifndef __DRV_ETH_H__ #define __DRV_ETH_H__ #include "rthw.h" @@ -26,20 +23,12 @@ #define USE_GIGA_MAC #ifndef USE_GIGA_MAC #define USE_FAST_MAC - //#define USE_RMII #endif #endif #define ETH_RXBUFNB 6 #define ETH_TXBUFNB 6 -#if 0 -#define USE_LOOP_STRUCT 1 -#else -#define USE_CHAIN_STRUCT 1 -#endif - - typedef struct { u32 length;