summaryrefslogtreecommitdiff
path: root/bsp/efm32/drv_ethernet.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/efm32/drv_ethernet.h')
-rw-r--r--bsp/efm32/drv_ethernet.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/bsp/efm32/drv_ethernet.h b/bsp/efm32/drv_ethernet.h
index 146182f86d..87e12493f6 100644
--- a/bsp/efm32/drv_ethernet.h
+++ b/bsp/efm32/drv_ethernet.h
@@ -1,11 +1,11 @@
/***************************************************************************//**
- * @file drv_ethernet.h
- * @brief Ethernet driver (SPI mode) of RT-Thread RTOS for using EFM32 USART
+ * @file drv_ethernet.h
+ * @brief Ethernet driver (SPI mode) of RT-Thread RTOS for using EFM32 USART
* module
- * This driver is tested by using the Microchip ENC28J60 stand-alone Ethernet
+ * This driver is tested by using the Microchip ENC28J60 stand-alone Ethernet
* controller with SPI interface.
* COPYRIGHT (C) 2012, RT-Thread Development Team
- * @author onelife
+ * @author onelife
* @version 1.0
*******************************************************************************
* @section License
@@ -13,8 +13,8 @@
* LICENSE in this distribution or at http://www.rt-thread.org/license/LICENSE
*******************************************************************************
* @section Change Logs
- * Date Author Notes
- * 2011-06-22 onelife Initial creation for using EFM32 USART module
+ * Date Author Notes
+ * 2011-06-22 onelife Initial creation for using EFM32 USART module
******************************************************************************/
#ifndef __DEV_ETHERNET_H__
#define __DEV_ETHERNET_H__
@@ -25,18 +25,18 @@
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
-#define ETH_ADDR_LEN (6)
-#define ETH_CLK_MAX (10000000) /* Should be more than 8 Mz (Errata 1) */
+#define ETH_ADDR_LEN (6)
+#define ETH_CLK_MAX (10000000) /* Should be more than 8 Mz (Errata 1) */
//#define ETH_HALF_DUPLEX
-#define ETH_PERIOD_WAIT_INIT (RT_TICK_PER_SECOND/100)
-#define ETH_PERIOD_WAIT_TX (RT_TICK_PER_SECOND/100)
-#define ETH_SPI_RX_SKIP (1)
+#define ETH_PERIOD_WAIT_INIT (RT_TICK_PER_SECOND/100)
+#define ETH_PERIOD_WAIT_TX (RT_TICK_PER_SECOND/100)
+#define ETH_SPI_RX_SKIP (1)
-#define ETH_RESET_PORT (gpioPortB)
-#define ETH_RESET_PIN (9)
-#define ETH_INT_PORT (gpioPortB)
-#define ETH_INT_PIN (10)
+#define ETH_RESET_PORT (gpioPortB)
+#define ETH_RESET_PIN (9)
+#define ETH_INT_PORT (gpioPortB)
+#define ETH_INT_PIN (10)
/* Exported functions ------------------------------------------------------- */
rt_err_t efm_hw_eth_init(void);