Add basic SAM4E driver.

Add ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM, ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM, ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM and ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM definitions.
This commit is contained in:
Richard Barry
2013-11-17 14:09:17 +00:00
parent 0865907f3f
commit cbb14d30c5
5 changed files with 398 additions and 58 deletions

View File

@ -5,11 +5,11 @@
* This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
* terms are different to the FreeRTOS license terms.
*
* FreeRTOS+UDP uses a dual license model that allows the software to be used
* under a standard GPL open source license, or a commercial license. The
* standard GPL license (unlike the modified GPL license under which FreeRTOS
* itself is distributed) requires that all software statically linked with
* FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
* FreeRTOS+UDP uses a dual license model that allows the software to be used
* under a standard GPL open source license, or a commercial license. The
* standard GPL license (unlike the modified GPL license under which FreeRTOS
* itself is distributed) requires that all software statically linked with
* FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
* Details of both license options follow:
*
* - Open source licensing -
@ -21,9 +21,9 @@
*
* - Commercial licensing -
* Businesses and individuals that for commercial or other reasons cannot comply
* with the terms of the GPL V2 license must obtain a commercial license before
* incorporating FreeRTOS+UDP into proprietary software for distribution in any
* form. Commercial licenses can be purchased from http://shop.freertos.org/udp
* with the terms of the GPL V2 license must obtain a commercial license before
* incorporating FreeRTOS+UDP into proprietary software for distribution in any
* form. Commercial licenses can be purchased from http://shop.freertos.org/udp
* and do not require any source files to be changed.
*
* FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
@ -151,5 +151,21 @@ from the FreeRTOSIPConfig.h configuration header file. */
#ifndef ipconfigSUPPORT_SELECT_FUNCTION
#define ipconfigSUPPORT_SELECT_FUNCTION 0
#endif
#ifndef ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM
#define ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM 0
#endif
#ifndef ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM
#define ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM 0
#endif
#ifndef ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM
#define ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM 0
#endif
#ifndef ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM
#define ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM 0
#endif
#endif /* FREERTOS_DEFAULT_IP_CONFIG_H */

View File

@ -114,10 +114,10 @@ struct freertos_sockaddr
#define FreeRTOS_inet_ntoa( ulIPAddress, pucBuffer ) \
sprintf( ( char * ) ( pucBuffer ), "%d.%d.%d.%d", \
( ( ulIPAddress ) & 0xffUL ), \
( ( ( ulIPAddress ) >> 8UL ) & 0xffUL ), \
( ( ( ulIPAddress ) >> 16UL ) & 0xffUL ), \
( ( ( ulIPAddress ) >> 24UL ) & 0xffUL ) )
( int ) ( ( ulIPAddress ) & 0xffUL ), \
( int ) ( ( ( ulIPAddress ) >> 8UL ) & 0xffUL ),\
( int ) ( ( ( ulIPAddress ) >> 16UL ) & 0xffUL ),\
( int ) ( ( ( ulIPAddress ) >> 24UL ) & 0xffUL ) )
#else /* ipconfigBYTE_ORDER */