]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/Common/drivers/ST/STM32F10xFWLib/inc/stm32fxxx_eth_conf.h
Add FreeRTOS-Plus directory.
[freertos] / FreeRTOS / Demo / Common / drivers / ST / STM32F10xFWLib / inc / stm32fxxx_eth_conf.h
1 /******************** (C) COPYRIGHT 2008 STMicroelectronics ********************\r
2 * File Name          : stm32f_eth_conf.h\r
3 * Author             : MCD Application Team\r
4 * Version            : VX.Y.Z\r
5 * Date               : mm/dd/2008\r
6 * Description        : ETHERNET firmware library configuration file.\r
7 ********************************************************************************\r
8 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS\r
9 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.\r
10 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,\r
11 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE\r
12 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING\r
13 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.\r
14 *******************************************************************************/\r
15 \r
16 /* Define to prevent recursive inclusion -------------------------------------*/\r
17 #ifndef __STM32F_ETH_CONF_H\r
18 #define __STM32F_ETH_CONF_H\r
19 \r
20 /* Includes ------------------------------------------------------------------*/\r
21 #include "stm32f10x_type.h"\r
22 /* Exported types ------------------------------------------------------------*/\r
23 /* Exported constants --------------------------------------------------------*/\r
24 /* Uncomment the line below to compile the ETHERNET firmware library in DEBUG mode,\r
25    this will expanse the "assert_param" macro in the firmware library code (see \r
26    "Exported macro" section below) */\r
27 /*#define ETH_DEBUG    1*/\r
28 \r
29 /* Comment the line below to disable the specific peripheral inclusion */\r
30 /************************************* ETHERNET *******************************/\r
31 #define _ETH_MAC\r
32 //#define _ETH_PTP\r
33 //#define _ETH_MMC\r
34 #define _ETH_DMA\r
35 \r
36 /* Exported macro ------------------------------------------------------------*/\r
37 #ifdef  ETH_DEBUG\r
38 /*******************************************************************************\r
39 * Macro Name     : eth_assert_param\r
40 * Description    : The eth_assert_param macro is used for ethernet function's parameters\r
41 *                  check.\r
42 *                  It is used only if the ethernet library is compiled in DEBUG mode. \r
43 * Input          : - expr: If expr is false, it calls assert_failed function\r
44 *                    which reports the name of the source file and the source\r
45 *                    line number of the call that failed. \r
46 *                    If expr is true, it returns no value.\r
47 * Return         : None\r
48 *******************************************************************************/ \r
49   #define eth_assert_param(expr) ((expr) ? (void)0 : assert_failed((u8 *)__FILE__, __LINE__))\r
50 /* Exported functions ------------------------------------------------------- */\r
51   void assert_failed(u8* file, u32 line);\r
52 #else\r
53   #define eth_assert_param(expr) ((void)0)\r
54 #endif /* ETH_DEBUG */\r
55 \r
56 #endif /* __STM32F_ETH_CONF_H */\r
57 \r
58 /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/\r