Rewrite from scratch a TCP/IP stack for mbed. So far the following parts are usable: Drivers: - EMAC driver (from CMSIS 2.0) Protocols: - Ethernet protocol - ARP over ethernet for IPv4 - IPv4 over Ethernet - ICMPv4 over IPv4 - UDPv4 over IPv4 APIs: - Sockets for UDPv4 The structure of this stack is designed to be very modular. Each protocol can register one or more protocol to handle its payload, and in each protocol, an API can be hooked (like Sockets for example). This is an early release.
lpc17xx_libcfg_default.h
00001 /* @cond */ 00002 /***********************************************************************//** 00003 * @file lpc17xx_libcfg_default.h 00004 * @brief Default Library configuration header file 00005 * @version 2.0 00006 * @date 21. May. 2010 00007 * @author NXP MCU SW Application Team 00008 ************************************************************************** 00009 * Software that is described herein is for illustrative purposes only 00010 * which provides customers with programming information regarding the 00011 * products. This software is supplied "AS IS" without any warranties. 00012 * NXP Semiconductors assumes no responsibility or liability for the 00013 * use of the software, conveys no license or title under any patent, 00014 * copyright, or mask work right to the product. NXP Semiconductors 00015 * reserves the right to make changes in the software without 00016 * notification. NXP Semiconductors also make no representation or 00017 * warranty that such application will be suitable for the specified 00018 * use without further testing or modification. 00019 **************************************************************************/ 00020 00021 /* Library Configuration group ----------------------------------------------------------- */ 00022 /** @defgroup LIBCFG_DEFAULT LIBCFG_DEFAULT 00023 * @ingroup LPC1700CMSIS_FwLib_Drivers 00024 * @{ 00025 */ 00026 00027 #ifndef LPC17XX_LIBCFG_DEFAULT_H_ 00028 #define LPC17XX_LIBCFG_DEFAULT_H_ 00029 00030 /* Includes ------------------------------------------------------------------- */ 00031 #include "lpc_types.h" 00032 00033 00034 /* Public Macros -------------------------------------------------------------- */ 00035 /** @defgroup LIBCFG_DEFAULT_Public_Macros LIBCFG_DEFAULT Public Macros 00036 * @{ 00037 */ 00038 00039 /************************** DEBUG MODE DEFINITIONS *********************************/ 00040 /* Un-comment the line below to compile the library in DEBUG mode, this will expanse 00041 the "CHECK_PARAM" macro in the FW library code */ 00042 00043 //#define DEBUG 00044 00045 00046 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/ 00047 /* Comment the line below to disable the specific peripheral inclusion */ 00048 00049 /* DEBUG_FRAMWORK ------------------------------ */ 00050 #define _DBGFWK 00051 00052 /* GPIO ------------------------------- */ 00053 #define _GPIO 00054 00055 /* EXTI ------------------------------- */ 00056 #define _EXTI 00057 00058 /* UART ------------------------------- */ 00059 #define _UART 00060 #define _UART0 00061 #define _UART1 00062 #define _UART2 00063 #define _UART3 00064 00065 /* SPI ------------------------------- */ 00066 #define _SPI 00067 00068 /* SYSTICK --------------------------- */ 00069 #define _SYSTICK 00070 00071 /* SSP ------------------------------- */ 00072 #define _SSP 00073 #define _SSP0 00074 #define _SSP1 00075 00076 00077 /* I2C ------------------------------- */ 00078 #define _I2C 00079 #define _I2C0 00080 #define _I2C1 00081 #define _I2C2 00082 00083 /* TIMER ------------------------------- */ 00084 #define _TIM 00085 00086 /* WDT ------------------------------- */ 00087 #define _WDT 00088 00089 00090 /* GPDMA ------------------------------- */ 00091 #define _GPDMA 00092 00093 00094 /* DAC ------------------------------- */ 00095 #define _DAC 00096 00097 /* DAC ------------------------------- */ 00098 #define _ADC 00099 00100 00101 /* PWM ------------------------------- */ 00102 #define _PWM 00103 #define _PWM1 00104 00105 /* RTC ------------------------------- */ 00106 #define _RTC 00107 00108 /* I2S ------------------------------- */ 00109 #define _I2S 00110 00111 /* USB device ------------------------------- */ 00112 #define _USBDEV 00113 #define _USB_DMA 00114 00115 /* QEI ------------------------------- */ 00116 #define _QEI 00117 00118 /* MCPWM ------------------------------- */ 00119 #define _MCPWM 00120 00121 /* CAN--------------------------------*/ 00122 #define _CAN 00123 00124 /* RIT ------------------------------- */ 00125 #define _RIT 00126 00127 /* EMAC ------------------------------ */ 00128 #define _EMAC 00129 00130 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/ 00131 00132 #ifdef DEBUG 00133 /******************************************************************************* 00134 * @brief The CHECK_PARAM macro is used for function's parameters check. 00135 * It is used only if the library is compiled in DEBUG mode. 00136 * @param[in] expr - If expr is false, it calls check_failed() function 00137 * which reports the name of the source file and the source 00138 * line number of the call that failed. 00139 * - If expr is true, it returns no value. 00140 * @return None 00141 *******************************************************************************/ 00142 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__)) 00143 #else 00144 #define CHECK_PARAM(expr) 00145 #endif /* DEBUG */ 00146 00147 /** 00148 * @} 00149 */ 00150 00151 00152 /* Public Functions ----------------------------------------------------------- */ 00153 /** @defgroup LIBCFG_DEFAULT_Public_Functions LIBCFG_DEFAULT Public Functions 00154 * @{ 00155 */ 00156 00157 #ifdef DEBUG 00158 void check_failed(uint8_t *file, uint32_t line); 00159 #endif 00160 00161 /** 00162 * @} 00163 */ 00164 00165 #endif /* LPC17XX_LIBCFG_DEFAULT_H_ */ 00166 00167 /** 00168 * @} 00169 */ 00170 00171 /* --------------------------------- End Of File ------------------------------ */ 00172 /* @endcond */
Generated on Wed Jul 13 2022 06:09:33 by 1.7.2