├── Demo ├── Common │ ├── ethernet │ │ ├── lwIP_130 │ │ │ ├── sys │ │ │ ├── src │ │ │ │ ├── core │ │ │ │ │ └── ipv6 │ │ │ │ │ │ └── README │ │ │ │ ├── FILES │ │ │ │ ├── netif │ │ │ │ │ └── FILES │ │ │ │ └── include │ │ │ │ │ ├── lwip │ │ │ │ │ ├── init.h │ │ │ │ │ ├── def.h │ │ │ │ │ └── sio.h │ │ │ │ │ ├── netif │ │ │ │ │ ├── slipif.h │ │ │ │ │ └── loopif.h │ │ │ │ │ └── ipv4 │ │ │ │ │ └── lwip │ │ │ │ │ └── inet_chksum.h │ │ │ ├── CHANGELOG │ │ │ ├── FILES │ │ │ ├── doc │ │ │ │ └── FILES │ │ │ ├── contrib │ │ │ │ └── port │ │ │ │ │ └── FreeRTOS │ │ │ │ │ ├── ColdFire │ │ │ │ │ ├── mii.h │ │ │ │ │ ├── eth.h │ │ │ │ │ └── arch │ │ │ │ │ │ ├── cpu.h │ │ │ │ │ │ ├── perf.h │ │ │ │ │ │ └── sys_arch.h │ │ │ │ │ └── STR91x │ │ │ │ │ └── arch │ │ │ │ │ ├── lib.h │ │ │ │ │ ├── cpu.h │ │ │ │ │ ├── perf.h │ │ │ │ │ ├── init.h │ │ │ │ │ ├── sys_arch.h │ │ │ │ │ └── cc.h │ │ │ └── COPYING │ │ ├── lwip-1.4.0 │ │ │ ├── ports │ │ │ │ ├── win32 │ │ │ │ │ ├── include │ │ │ │ │ │ └── arch │ │ │ │ │ │ │ ├── bpstruct.h │ │ │ │ │ │ │ ├── epstruct.h │ │ │ │ │ │ │ ├── perf.h │ │ │ │ │ │ │ └── sys_arch.h │ │ │ │ │ ├── WinPCap │ │ │ │ │ │ ├── wpcap.lib │ │ │ │ │ │ ├── pcap │ │ │ │ │ │ │ ├── bluetooth.h │ │ │ │ │ │ │ └── vlan.h │ │ │ │ │ │ ├── pcap-namedb.h │ │ │ │ │ │ └── pcap-bpf.h │ │ │ │ │ └── lwipcfg_msvc.h │ │ │ │ └── MicroBlaze-Ethernet-Lite │ │ │ │ │ └── include │ │ │ │ │ └── arch │ │ │ │ │ ├── epstruct.h │ │ │ │ │ ├── bpstruct.h │ │ │ │ │ ├── perf.h │ │ │ │ │ └── sys_arch.h │ │ │ ├── src │ │ │ │ ├── core │ │ │ │ │ ├── ipv6 │ │ │ │ │ │ └── README │ │ │ │ │ ├── ipv4 │ │ │ │ │ │ └── inet.c │ │ │ │ │ └── sys.c │ │ │ │ ├── .hgignore │ │ │ │ ├── FILES │ │ │ │ ├── netif │ │ │ │ │ └── FILES │ │ │ │ └── include │ │ │ │ │ ├── netif │ │ │ │ │ └── slipif.h │ │ │ │ │ └── ipv6 │ │ │ │ │ └── lwip │ │ │ │ │ └── inet.h │ │ │ ├── CHANGELOG │ │ │ ├── FILES │ │ │ ├── doc │ │ │ │ └── FILES │ │ │ └── COPYING │ │ ├── uIP │ │ │ └── uip-1.0 │ │ │ │ ├── apps │ │ │ │ ├── webserver │ │ │ │ │ ├── httpd-fs │ │ │ │ │ │ ├── footer.html │ │ │ │ │ │ ├── fade.png │ │ │ │ │ │ ├── 404.html │ │ │ │ │ │ ├── tcp.shtml │ │ │ │ │ │ ├── processes.shtml │ │ │ │ │ │ ├── header.html │ │ │ │ │ │ ├── stats.shtml │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ ├── files.shtml │ │ │ │ │ │ └── style.css │ │ │ │ │ ├── Makefile.webserver │ │ │ │ │ ├── makestrings │ │ │ │ │ ├── http-strings │ │ │ │ │ ├── http-strings.h │ │ │ │ │ ├── webserver.h │ │ │ │ │ ├── makefsdata │ │ │ │ │ ├── httpd.h │ │ │ │ │ └── httpd-fs.h │ │ │ │ └── README │ │ │ │ ├── README │ │ │ │ └── uip │ │ │ │ └── Makefile.include │ │ ├── lwIP_132 │ │ │ ├── src │ │ │ │ ├── core │ │ │ │ │ └── ipv6 │ │ │ │ │ │ └── README │ │ │ │ ├── FILES │ │ │ │ ├── netif │ │ │ │ │ ├── FILES │ │ │ │ │ ├── ppp │ │ │ │ │ │ └── vjbsdhdr.h │ │ │ │ │ └── loopif.c │ │ │ │ └── include │ │ │ │ │ ├── lwip │ │ │ │ │ └── def.h │ │ │ │ │ ├── netif │ │ │ │ │ ├── slipif.h │ │ │ │ │ └── loopif.h │ │ │ │ │ ├── ipv4 │ │ │ │ │ └── lwip │ │ │ │ │ │ └── inet_chksum.h │ │ │ │ │ └── ipv6 │ │ │ │ │ └── lwip │ │ │ │ │ └── inet.h │ │ │ ├── CHANGELOG │ │ │ ├── FILES │ │ │ ├── doc │ │ │ │ └── FILES │ │ │ └── COPYING │ │ ├── See-also-embTCP-libraries.url │ │ ├── See-also-proprietary-FreeRTOS-Plus-UDP-product.url │ │ ├── FreeTCPIP │ │ │ ├── net │ │ │ │ ├── pack_struct_end.h │ │ │ │ ├── pack_struct_start.h │ │ │ │ └── clock-arch.h │ │ │ └── apps │ │ │ │ └── httpd │ │ │ │ ├── http-strings.h │ │ │ │ ├── makefsdata │ │ │ │ ├── httpd.h │ │ │ │ ├── httpd-fs.h │ │ │ │ └── httpd-fsdata.h │ │ ├── lwIP │ │ │ ├── FILES │ │ │ ├── netif │ │ │ │ ├── FILES │ │ │ │ └── ppp │ │ │ │ │ └── vjbsdhdr.h │ │ │ ├── include │ │ │ │ ├── netif │ │ │ │ │ ├── loopif.h │ │ │ │ │ └── slipif.h │ │ │ │ ├── lwip │ │ │ │ │ ├── def.h │ │ │ │ │ ├── memp.h │ │ │ │ │ ├── sio.h │ │ │ │ │ └── tcpip.h │ │ │ │ └── ipv4 │ │ │ │ │ └── lwip │ │ │ │ │ └── ip_frag.h │ │ │ └── api │ │ │ │ └── err.c │ │ └── FreeRTOS-uIP │ │ │ ├── Makefile.include │ │ │ └── clock-arch.h │ └── drivers │ │ ├── LuminaryMicro │ │ ├── Keil │ │ │ ├── grlib.lib │ │ │ └── driverlib.lib │ │ ├── cpu.h │ │ └── rit128x96x4.h │ │ ├── Atmel │ │ └── at91lib │ │ │ ├── peripherals │ │ │ ├── pit │ │ │ │ ├── pit.c │ │ │ │ └── pit.h │ │ │ ├── pmc │ │ │ │ └── pmc.h │ │ │ ├── aes │ │ │ │ └── aes.h │ │ │ └── tc │ │ │ │ └── tc.h │ │ │ └── boards │ │ │ └── at91sam9xe-ek │ │ │ ├── at91sam9xe128 │ │ │ ├── sram.icf │ │ │ ├── sdram.icf │ │ │ └── flash.icf │ │ │ ├── at91sam9xe256 │ │ │ ├── sram.icf │ │ │ ├── sdram.icf │ │ │ └── flash.icf │ │ │ ├── at91sam9xe512 │ │ │ ├── sram.icf │ │ │ ├── sdram.icf │ │ │ └── flash.icf │ │ │ └── board_memories.h │ │ └── ST │ │ └── STM32F10xFWLib │ │ ├── src │ │ ├── stm32f10x_adc.c │ │ ├── stm32f10x_can.c │ │ ├── stm32f10x_dma.c │ │ ├── stm32f10x_exti.c │ │ ├── stm32f10x_flash.c │ │ ├── stm32f10x_fsmc.c │ │ ├── stm32f10x_i2c.c │ │ ├── stm32f10x_nvic.c │ │ ├── stm32f10x_rcc.c │ │ ├── stm32f10x_rtc.c │ │ ├── stm32f10x_sdio.c │ │ ├── stm32f10x_tim.c │ │ ├── stm32f10x_tim1.c │ │ └── stm32f10x_usart.c │ │ ├── version.txt │ │ └── inc │ │ ├── stm32fxxx_eth_lib.h │ │ ├── stm32f10x_crc.h │ │ └── cortexm3_macro.h └── riscv-spike │ └── Makefile.inc ├── Source ├── include │ ├── FreeRTOS.h.gch │ └── stdint.readme ├── readme.txt └── string.c └── README.md /Demo/Common/ethernet/lwIP_130/sys: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/win32/include/arch/bpstruct.h: -------------------------------------------------------------------------------- 1 | #pragma pack(push,1) 2 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/win32/include/arch/epstruct.h: -------------------------------------------------------------------------------- 1 | #pragma pack(pop) 2 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/footer.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/src/core/ipv6/README: -------------------------------------------------------------------------------- 1 | IPv6 support in lwIP is very experimental. 2 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/src/core/ipv6/README: -------------------------------------------------------------------------------- 1 | IPv6 support in lwIP is very experimental. 2 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/src/core/ipv6/README: -------------------------------------------------------------------------------- 1 | IPv6 support in lwIP is very experimental. 2 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/MicroBlaze-Ethernet-Lite/include/arch/epstruct.h: -------------------------------------------------------------------------------- 1 | #pragma pack(pop) 2 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/MicroBlaze-Ethernet-Lite/include/arch/bpstruct.h: -------------------------------------------------------------------------------- 1 | #pragma pack(push,1) 2 | -------------------------------------------------------------------------------- /Source/include/FreeRTOS.h.gch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Source/include/FreeRTOS.h.gch -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/Makefile.webserver: -------------------------------------------------------------------------------- 1 | APP_SOURCES += httpd.c http-strings.c httpd-fs.c httpd-cgi.c 2 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/ethernet/lwIP_130/CHANGELOG -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/ethernet/lwIP_132/CHANGELOG -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/ethernet/lwip-1.4.0/CHANGELOG -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/README: -------------------------------------------------------------------------------- 1 | This directory contains a few example applications. They are not all 2 | heavily tested, however. 3 | -------------------------------------------------------------------------------- /Demo/Common/drivers/LuminaryMicro/Keil/grlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/LuminaryMicro/Keil/grlib.lib -------------------------------------------------------------------------------- /Demo/Common/drivers/LuminaryMicro/Keil/driverlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/LuminaryMicro/Keil/driverlib.lib -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/peripherals/pit/pit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/Atmel/at91lib/peripherals/pit/pit.c -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/peripherals/pit/pit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/Atmel/at91lib/peripherals/pit/pit.h -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_adc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_adc.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_can.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_can.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_dma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_dma.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_exti.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_exti.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_flash.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_fsmc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_fsmc.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_i2c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_i2c.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_nvic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_nvic.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_rcc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_rcc.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_rtc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_rtc.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_sdio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_sdio.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_tim.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_tim.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_tim1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_tim1.c -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_usart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/drivers/ST/STM32F10xFWLib/src/stm32f10x_usart.c -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/win32/WinPCap/wpcap.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/ethernet/lwip-1.4.0/ports/win32/WinPCap/wpcap.lib -------------------------------------------------------------------------------- /Demo/Common/ethernet/See-also-embTCP-libraries.url: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=http://www.freertos.org/embtcp 3 | IDList= 4 | [{000214A0-0000-0000-C000-000000000046}] 5 | Prop3=19,2 6 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/FILES: -------------------------------------------------------------------------------- 1 | src/ - The source code for the lwIP TCP/IP stack. 2 | doc/ - The documentation for lwIP. 3 | 4 | See also the FILES file in each subdirectory. 5 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/fade.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illustris/FreeRTOS-RISCV/HEAD/Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/fade.png -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/FILES: -------------------------------------------------------------------------------- 1 | src/ - The source code for the lwIP TCP/IP stack. 2 | doc/ - The documentation for lwIP. 3 | 4 | See also the FILES file in each subdirectory. 5 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/FILES: -------------------------------------------------------------------------------- 1 | src/ - The source code for the lwIP TCP/IP stack. 2 | doc/ - The documentation for lwIP. 3 | 4 | See also the FILES file in each subdirectory. 5 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/See-also-proprietary-FreeRTOS-Plus-UDP-product.url: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=http://www.freertos.org/udp 3 | IDList= 4 | [{000214A0-0000-0000-C000-000000000046}] 5 | Prop3=19,2 6 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |

404 - file not found

5 |

Go here instead.

6 |
7 | 8 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/tcp.shtml: -------------------------------------------------------------------------------- 1 | %!: /header.html 2 |

Current connections


3 | 4 | %! tcp-connections 5 | %!: /footer.html -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/processes.shtml: -------------------------------------------------------------------------------- 1 | %!: /header.html 2 |

System processes


LocalRemoteStateRetransmissionsTimerFlags
3 | 4 | %! processes 5 | %!: /footer.html -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/doc/FILES: -------------------------------------------------------------------------------- 1 | savannah.txt - How to obtain the current development source code. 2 | contrib.txt - How to contribute to lwIP as a developer. 3 | rawapi.txt - The documentation for the core API of lwIP. 4 | snmp_agent.txt - The documentation for the lwIP SNMP agent. 5 | sys_arch.txt - The documentation for a system abstraction layer of lwIP. 6 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/src/.hgignore: -------------------------------------------------------------------------------- 1 | syntax: glob 2 | 3 | *.pyc 4 | *.orig 5 | *.rej 6 | *~ 7 | TAGS 8 | Module.symvers 9 | *.ncb 10 | *.suo 11 | *.bak 12 | *.orig 13 | *.rej 14 | 15 | syntax: regexp 16 | \.\#.+ 17 | [\\/]CVS$ 18 | ^CVS$ 19 | ^build$ 20 | ^install$ 21 | ^logs.build_tree$ 22 | [\\/]bin$ 23 | ^bin$ 24 | [\\/]obj$ 25 | ^obj$ 26 | \.cvsignore 27 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/doc/FILES: -------------------------------------------------------------------------------- 1 | savannah.txt - How to obtain the current development source code. 2 | contrib.txt - How to contribute to lwIP as a developer. 3 | rawapi.txt - The documentation for the core API of lwIP. 4 | Also provides an overview about the other APIs and multithreading. 5 | snmp_agent.txt - The documentation for the lwIP SNMP agent. 6 | sys_arch.txt - The documentation for a system abstraction layer of lwIP. 7 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/doc/FILES: -------------------------------------------------------------------------------- 1 | savannah.txt - How to obtain the current development source code. 2 | contrib.txt - How to contribute to lwIP as a developer. 3 | rawapi.txt - The documentation for the core API of lwIP. 4 | Also provides an overview about the other APIs and multithreading. 5 | snmp_agent.txt - The documentation for the lwIP SNMP agent. 6 | sys_arch.txt - The documentation for a system abstraction layer of lwIP. 7 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h: -------------------------------------------------------------------------------- 1 | #ifdef __GNUC__ 2 | __attribute__( (packed) ); 3 | #endif 4 | 5 | #ifdef _SH 6 | #ifdef __RENESAS__ 7 | ; 8 | #pragma unpack 9 | #endif 10 | #endif 11 | 12 | #ifdef __RX 13 | #ifdef __RENESAS__ 14 | ; 15 | /* Nothing to do. */ 16 | #endif 17 | #endif 18 | 19 | 20 | #ifdef __ICCRX__ 21 | ; 22 | #pragma pack() 23 | #endif 24 | 25 | #ifdef __ICCARM__ 26 | ; 27 | #pragma pack() 28 | #endif 29 | 30 | 31 | #ifdef __CC_ARM 32 | ; 33 | #endif 34 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/README: -------------------------------------------------------------------------------- 1 | uIP is a very small implementation of the TCP/IP stack that is written 2 | by Adam Dunkels . More information can be obtained 3 | at the uIP homepage at http://www.sics.se/~adam/uip/. 4 | 5 | This is version $Name: uip-1-0 $. 6 | 7 | The directory structure look as follows: 8 | 9 | apps/ - Example applications 10 | doc/ - Documentation 11 | lib/ - Library code used by some applications 12 | uip/ - uIP TCP/IP stack code 13 | unix/ - uIP as a user space process under FreeBSD or Linux 14 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h: -------------------------------------------------------------------------------- 1 | #ifdef __GNUC__ 2 | 3 | /* Nothing to do here. */ 4 | ; 5 | #endif 6 | 7 | /* Used by SH2A port. */ 8 | #ifdef _SH 9 | #ifdef __RENESAS__ 10 | #pragma pack 1 11 | #endif 12 | #endif 13 | 14 | 15 | #ifdef __RX 16 | #ifdef __RENESAS__ 17 | /* Nothing to do. */ 18 | #endif 19 | #endif 20 | 21 | 22 | #ifdef __ICCRX__ 23 | #pragma pack(1) 24 | #endif 25 | 26 | 27 | #ifdef __ICCARM__ 28 | #pragma pack(1) 29 | #endif 30 | 31 | #ifdef __CC_ARM 32 | __packed 33 | #endif 34 | 35 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/FILES: -------------------------------------------------------------------------------- 1 | api/ - The code for the high-level wrapper API. Not needed if 2 | you use the lowel-level call-back/raw API. 3 | 4 | core/ - The core of the TPC/IP stack; protocol implementations, 5 | memory and buffer management, and the low-level raw API. 6 | 7 | include/ - lwIP include files. 8 | 9 | netif/ - Generic network interface device drivers are kept here, 10 | as well as the ARP module. 11 | 12 | For more information on the various subdirectories, check the FILES 13 | file in each directory. 14 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/src/FILES: -------------------------------------------------------------------------------- 1 | api/ - The code for the high-level wrapper API. Not needed if 2 | you use the lowel-level call-back/raw API. 3 | 4 | core/ - The core of the TPC/IP stack; protocol implementations, 5 | memory and buffer management, and the low-level raw API. 6 | 7 | include/ - lwIP include files. 8 | 9 | netif/ - Generic network interface device drivers are kept here, 10 | as well as the ARP module. 11 | 12 | For more information on the various subdirectories, check the FILES 13 | file in each directory. 14 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/src/FILES: -------------------------------------------------------------------------------- 1 | api/ - The code for the high-level wrapper API. Not needed if 2 | you use the lowel-level call-back/raw API. 3 | 4 | core/ - The core of the TPC/IP stack; protocol implementations, 5 | memory and buffer management, and the low-level raw API. 6 | 7 | include/ - lwIP include files. 8 | 9 | netif/ - Generic network interface device drivers are kept here, 10 | as well as the ARP module. 11 | 12 | For more information on the various subdirectories, check the FILES 13 | file in each directory. 14 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/src/FILES: -------------------------------------------------------------------------------- 1 | api/ - The code for the high-level wrapper API. Not needed if 2 | you use the lowel-level call-back/raw API. 3 | 4 | core/ - The core of the TPC/IP stack; protocol implementations, 5 | memory and buffer management, and the low-level raw API. 6 | 7 | include/ - lwIP include files. 8 | 9 | netif/ - Generic network interface device drivers are kept here, 10 | as well as the ARP module. 11 | 12 | For more information on the various subdirectories, check the FILES 13 | file in each directory. 14 | -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/version.txt: -------------------------------------------------------------------------------- 1 | /******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** 2 | * File Name : version.txt 3 | * Author : MCD Application Team 4 | * Date First Issued : 09/29/2006 5 | * Description : Version file for STM32F10x Firmware Library. 6 | ******************************************************************************** 7 | 8 | * 04/02/2007: V0.2 9 | =================== 10 | Updated version 11 | 12 | * 02/05/2007 : V0.1 13 | =================== 14 | Updated version 15 | 16 | * 09/29/2006 : V0.01 17 | =================== 18 | Created. 19 | 20 | ******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****** 21 | 22 | 23 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to the uIP web server! 5 | 6 | 7 | 8 | 9 | 17 | 18 |
19 | -------------------------------------------------------------------------------- /Demo/riscv-spike/Makefile.inc: -------------------------------------------------------------------------------- 1 | # File to be included in all makefiles 2 | 3 | RISCV_XLEN ?= 64 4 | RISCV_LIB ?= elf 5 | RISCV ?= /opt/riscv 6 | CCPATH = $(RISCV) 7 | 8 | TARGET=$(CCPATH)/bin/riscv${RISCV_XLEN}-unknown-${RISCV_LIB} 9 | #----------------------------------------------------------- 10 | GCC = $(TARGET)-gcc 11 | OBJCOPY = $(TARGET)-objcopy 12 | OBJDUMP = $(TARGET)-objdump 13 | AR = $(TARGET)-ar 14 | RANLIB = $(TARGET)-ranlib 15 | 16 | PROG = riscv-spike 17 | CRT0 = arch/boot.S 18 | 19 | FREERTOS_SOURCE_DIR = ../../Source 20 | CUNIT = ../../../cunit 21 | 22 | #----------------------------------------------------------- 23 | WARNINGS= -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare \ 24 | -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused 25 | 26 | -------------------------------------------------------------------------------- /Source/readme.txt: -------------------------------------------------------------------------------- 1 | Each real time kernel port consists of three files that contain the core kernel 2 | components and are common to every port, and one or more files that are 3 | specific to a particular microcontroller and or compiler. 4 | 5 | + The FreeRTOS/Source directory contains the three files that are common to 6 | every port - list.c, queue.c and tasks.c. The kernel is contained within these 7 | three files. croutine.c implements the optional co-routine functionality - which 8 | is normally only used on very memory limited systems. 9 | 10 | + The FreeRTOS/Source/Portable directory contains the files that are specific to 11 | a particular microcontroller and or compiler. 12 | 13 | + The FreeRTOS/Source/include directory contains the real time kernel header 14 | files. 15 | 16 | See the readme file in the FreeRTOS/Source/Portable directory for more 17 | information. -------------------------------------------------------------------------------- /Source/include/stdint.readme: -------------------------------------------------------------------------------- 1 | 2 | #ifndef FREERTOS_STDINT 3 | #define FREERTOS_STDINT 4 | 5 | /******************************************************************************* 6 | * THIS IS NOT A FULL stdint.h IMPLEMENTATION - It only contains the definitions 7 | * necessary to build the FreeRTOS code. It is provided to allow FreeRTOS to be 8 | * built using compilers that do not provide their own stdint.h definition. 9 | * 10 | * To use this file: 11 | * 12 | * 1) Copy this file into the directory that contains your FreeRTOSConfig.h 13 | * header file, as that directory will already be in the compilers include 14 | * path. 15 | * 16 | * 2) Rename the copied file stdint.h. 17 | * 18 | */ 19 | 20 | typedef signed char int8_t; 21 | typedef unsigned char uint8_t; 22 | typedef short int16_t; 23 | typedef unsigned short uint16_t; 24 | typedef long int32_t; 25 | typedef unsigned long uint32_t; 26 | 27 | #endif /* FREERTOS_STDINT */ 28 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/stats.shtml: -------------------------------------------------------------------------------- 1 | %!: /header.html 2 |

Network statistics

3 |
4 |
IDNamePriorityPoll handlerEvent handlerProcstate
5 |
 6 | IP           Packets received
 7 |              Packets sent
 8 | 	     Packets dropped
 9 | IP errors    IP version/header length
10 |              IP length, high byte
11 |              IP length, low byte
12 |              IP fragments
13 |              Header checksum
14 |              Wrong protocol
15 | ICMP	     Packets received
16 |              Packets sent
17 |              Packets dropped
18 |              Type errors
19 | TCP          Packets received
20 |              Packets sent
21 |              Packets dropped
22 |              Checksum errors
23 |              Data packets without ACKs
24 |              Resets
25 |              Retransmissions
26 | 	     No connection avaliable
27 | 	     Connection attempts to closed ports
28 | 
%! net-stats
29 | 
30 | 31 | %!: /footer.html 32 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to the uIP web server! 5 | 6 | 7 | 8 | 9 | 17 | 18 |
19 |

20 | These web pages are served by a small web server running on top of 21 | the uIP embedded TCP/IP 22 | stack. 23 |

24 |

25 | Click on the links above for web server statistics. 26 |

27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/makestrings: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | 4 | sub stringify { 5 | my $name = shift(@_); 6 | open(OUTPUTC, "> $name.c"); 7 | open(OUTPUTH, "> $name.h"); 8 | 9 | open(FILE, "$name"); 10 | 11 | while() { 12 | if(/(.+) "(.+)"/) { 13 | $var = $1; 14 | $data = $2; 15 | 16 | $datan = $data; 17 | $datan =~ s/\\r/\r/g; 18 | $datan =~ s/\\n/\n/g; 19 | $datan =~ s/\\01/\01/g; 20 | $datan =~ s/\\0/\0/g; 21 | 22 | printf(OUTPUTC "const char $var\[%d] = \n", length($datan) + 1); 23 | printf(OUTPUTC "/* \"$data\" */\n"); 24 | printf(OUTPUTC "{"); 25 | for($j = 0; $j < length($datan); $j++) { 26 | printf(OUTPUTC "%#02x, ", unpack("C", substr($datan, $j, 1))); 27 | } 28 | printf(OUTPUTC "};\n"); 29 | 30 | printf(OUTPUTH "extern const char $var\[%d];\n", length($datan) + 1); 31 | 32 | } 33 | } 34 | close(OUTPUTC); 35 | close(OUTPUTH); 36 | } 37 | stringify("http-strings"); 38 | 39 | exit 0; 40 | 41 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/src/netif/FILES: -------------------------------------------------------------------------------- 1 | This directory contains generic network interface device drivers that 2 | do not contain any hardware or architecture specific code. The files 3 | are: 4 | 5 | etharp.c 6 | Implements the ARP (Address Resolution Protocol) over 7 | Ethernet. The code in this file should be used together with 8 | Ethernet device drivers. Note that this module has been 9 | largely made Ethernet independent so you should be able to 10 | adapt this for other link layers (such as Firewire). 11 | 12 | ethernetif.c 13 | An example of how an Ethernet device driver could look. This 14 | file can be used as a "skeleton" for developing new Ethernet 15 | network device drivers. It uses the etharp.c ARP code. 16 | 17 | loopif.c 18 | A "loopback" network interface driver. It requires configuration 19 | through the define LWIP_LOOPIF_MULTITHREADING (see opt.h). 20 | 21 | slipif.c 22 | A generic implementation of the SLIP (Serial Line IP) 23 | protocol. It requires a sio (serial I/O) module to work. 24 | 25 | ppp/ Point-to-Point Protocol stack 26 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/ColdFire/mii.h: -------------------------------------------------------------------------------- 1 | /*! 2 | * \file mii.h 3 | * \brief Media Independent Interface (MII) driver 4 | * \version $Revision: 1.3 $ 5 | * \author Michael Norman 6 | * 7 | * \warning This driver assumes that FEC0 is used for all MII management 8 | * communications. For dual PHYs, etc., insure that FEC0_MDC and 9 | * FEC0_MDIO are connected to the PHY's MDC and MDIO. 10 | */ 11 | 12 | #ifndef _MII_H_ 13 | #define _MII_H_ 14 | 15 | /*******************************************************************/ 16 | 17 | int 18 | mii_write(int, int, uint16); 19 | 20 | int 21 | mii_read(int, int, uint16*); 22 | 23 | void 24 | mii_init(int); 25 | 26 | /* MII Speed Settings */ 27 | typedef enum { 28 | MII_10BASE_T, /*!< 10Base-T operation */ 29 | MII_100BASE_TX /*!< 100Base-TX operation */ 30 | } MII_SPEED; 31 | 32 | /* MII Duplex Settings */ 33 | typedef enum { 34 | MII_HDX, /*!< half-duplex */ 35 | MII_FDX /*!< full-duplex */ 36 | } MII_DUPLEX; 37 | 38 | #define MII_TIMEOUT 0x10000 39 | #define MII_LINK_TIMEOUT 0x10000 40 | 41 | /*******************************************************************/ 42 | 43 | #endif /* _MII_H_ */ 44 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/netif/FILES: -------------------------------------------------------------------------------- 1 | This directory contains generic network interface device drivers that 2 | do not contain any hardware or architecture specific code. The files 3 | are: 4 | 5 | etharp.c 6 | Implements the ARP (Address Resolution Protocol) over 7 | Ethernet. The code in this file should be used together with 8 | Ethernet device drivers. Note that this module has been 9 | largely made Ethernet independent so you should be able to 10 | adapt this for other link layers (such as Firewire). 11 | 12 | ethernetif.c 13 | An example of how an Ethernet device driver could look. This 14 | file can be used as a "skeleton" for developing new Ethernet 15 | network device drivers. It uses the etharp.c ARP code. 16 | 17 | loopif.c 18 | An example network interface that shows how a "loopback" 19 | interface would work. This is not really intended for actual 20 | use, but as a very basic example of how initialization and 21 | output functions work. 22 | 23 | slipif.c 24 | A generic implementation of the SLIP (Serial Line IP) 25 | protocol. It requires a sio (serial I/O) module to work. 26 | 27 | ppp/ Point-to-Point Protocol stack 28 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/FreeRTOS-uIP/Makefile.include: -------------------------------------------------------------------------------- 1 | 2 | 3 | ifdef APPS 4 | APPDIRS = $(foreach APP, $(APPS), ../apps/$(APP)) 5 | -include $(foreach APP, $(APPS), ../apps/$(APP)/Makefile.$(APP)) 6 | CFLAGS += $(addprefix -I../apps/,$(APPS)) 7 | endif 8 | 9 | ifndef CCDEP 10 | CCDEP = $(CC) 11 | endif 12 | ifndef CCDEPCFLAGS 13 | CCDEPCFLAGS = $(CFLAGS) 14 | endif 15 | ifndef OBJECTDIR 16 | OBJECTDIR = obj 17 | endif 18 | 19 | ifeq (${wildcard $(OBJECTDIR)},) 20 | DUMMY := ${shell mkdir $(OBJECTDIR)} 21 | endif 22 | 23 | 24 | vpath %.c . ../uip ../lib $(APPDIRS) 25 | 26 | $(OBJECTDIR)/%.o: %.c 27 | $(CC) $(CFLAGS) -c $< -o $@ 28 | 29 | $(OBJECTDIR)/%.d: %.c 30 | @set -e; rm -f $@; \ 31 | $(CCDEP) -MM $(CCDEPCFLAGS) $< > $@.$$$$; \ 32 | sed 's,\($*\)\.o[ :]*,$(OBJECTDIR)/\1.o $@ : ,g' < $@.$$$$ > $@; \ 33 | rm -f $@.$$$$ 34 | 35 | UIP_SOURCES=uip.c uip_arp.c uiplib.c psock.c timer.c uip-neighbor.c 36 | 37 | 38 | ifneq ($(MAKECMDGOALS),clean) 39 | -include $(addprefix $(OBJECTDIR)/,$(UIP_SOURCES:.c=.d) \ 40 | $(APP_SOURCES:.c=.d)) 41 | endif 42 | 43 | uip.a: ${addprefix $(OBJECTDIR)/, $(UIP_SOURCES:.c=.o)} 44 | $(AR) rcf $@ $^ 45 | 46 | apps.a: ${addprefix $(OBJECTDIR)/, $(APP_SOURCES:.c=.o)} 47 | $(AR) rcf $@ $^ 48 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/uip/Makefile.include: -------------------------------------------------------------------------------- 1 | 2 | 3 | ifdef APPS 4 | APPDIRS = $(foreach APP, $(APPS), ../apps/$(APP)) 5 | -include $(foreach APP, $(APPS), ../apps/$(APP)/Makefile.$(APP)) 6 | CFLAGS += $(addprefix -I../apps/,$(APPS)) 7 | endif 8 | 9 | ifndef CCDEP 10 | CCDEP = $(CC) 11 | endif 12 | ifndef CCDEPCFLAGS 13 | CCDEPCFLAGS = $(CFLAGS) 14 | endif 15 | ifndef OBJECTDIR 16 | OBJECTDIR = obj 17 | endif 18 | 19 | ifeq (${wildcard $(OBJECTDIR)},) 20 | DUMMY := ${shell mkdir $(OBJECTDIR)} 21 | endif 22 | 23 | 24 | vpath %.c . ../uip ../lib $(APPDIRS) 25 | 26 | $(OBJECTDIR)/%.o: %.c 27 | $(CC) $(CFLAGS) -c $< -o $@ 28 | 29 | $(OBJECTDIR)/%.d: %.c 30 | @set -e; rm -f $@; \ 31 | $(CCDEP) -MM $(CCDEPCFLAGS) $< > $@.$$$$; \ 32 | sed 's,\($*\)\.o[ :]*,$(OBJECTDIR)/\1.o $@ : ,g' < $@.$$$$ > $@; \ 33 | rm -f $@.$$$$ 34 | 35 | UIP_SOURCES=uip.c uip_arp.c uiplib.c psock.c timer.c uip-neighbor.c 36 | 37 | 38 | ifneq ($(MAKECMDGOALS),clean) 39 | -include $(addprefix $(OBJECTDIR)/,$(UIP_SOURCES:.c=.d) \ 40 | $(APP_SOURCES:.c=.d)) 41 | endif 42 | 43 | uip.a: ${addprefix $(OBJECTDIR)/, $(UIP_SOURCES:.c=.o)} 44 | $(AR) rcf $@ $^ 45 | 46 | apps.a: ${addprefix $(OBJECTDIR)/, $(APP_SOURCES:.c=.o)} 47 | $(AR) rcf $@ $^ 48 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/http-strings: -------------------------------------------------------------------------------- 1 | http_http "http://" 2 | http_200 "200 " 3 | http_301 "301 " 4 | http_302 "302 " 5 | http_get "GET " 6 | http_10 "HTTP/1.0" 7 | http_11 "HTTP/1.1" 8 | http_content_type "content-type: " 9 | http_texthtml "text/html" 10 | http_location "location: " 11 | http_host "host: " 12 | http_crnl "\r\n" 13 | http_index_html "/index.html" 14 | http_404_html "/404.html" 15 | http_referer "Referer:" 16 | http_header_200 "HTTP/1.0 200 OK\r\nServer: uIP/1.0 http://www.sics.se/~adam/uip/\r\nConnection: close\r\n" 17 | http_header_404 "HTTP/1.0 404 Not found\r\nServer: uIP/1.0 http://www.sics.se/~adam/uip/\r\nConnection: close\r\n" 18 | http_content_type_plain "Content-type: text/plain\r\n\r\n" 19 | http_content_type_html "Content-type: text/html\r\n\r\n" 20 | http_content_type_css "Content-type: text/css\r\n\r\n" 21 | http_content_type_text "Content-type: text/text\r\n\r\n" 22 | http_content_type_png "Content-type: image/png\r\n\r\n" 23 | http_content_type_gif "Content-type: image/gif\r\n\r\n" 24 | http_content_type_jpg "Content-type: image/jpeg\r\n\r\n" 25 | http_content_type_binary "Content-type: application/octet-stream\r\n\r\n" 26 | http_html ".html" 27 | http_shtml ".shtml" 28 | http_htm ".htm" 29 | http_css ".css" 30 | http_png ".png" 31 | http_gif ".gif" 32 | http_jpg ".jpg" 33 | http_text ".txt" 34 | http_txt ".txt" 35 | 36 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/FreeTCPIP/apps/httpd/http-strings.h: -------------------------------------------------------------------------------- 1 | extern const char http_http[8]; 2 | extern const char http_200[5]; 3 | extern const char http_301[5]; 4 | extern const char http_302[5]; 5 | extern const char http_get[5]; 6 | extern const char http_10[9]; 7 | extern const char http_11[9]; 8 | extern const char http_content_type[15]; 9 | extern const char http_texthtml[10]; 10 | extern const char http_location[11]; 11 | extern const char http_host[7]; 12 | extern const char http_crnl[3]; 13 | extern const char http_index_html[12]; 14 | extern const char http_404_html[10]; 15 | extern const char http_referer[9]; 16 | extern const char http_header_200[84]; 17 | extern const char http_header_404[91]; 18 | extern const char http_content_type_plain[29]; 19 | extern const char http_content_type_html[28]; 20 | extern const char http_content_type_css[27]; 21 | extern const char http_content_type_text[28]; 22 | extern const char http_content_type_png[28]; 23 | extern const char http_content_type_gif[28]; 24 | extern const char http_content_type_jpg[29]; 25 | extern const char http_content_type_binary[43]; 26 | extern const char http_html[6]; 27 | extern const char http_shtml[7]; 28 | extern const char http_htm[5]; 29 | extern const char http_css[5]; 30 | extern const char http_png[5]; 31 | extern const char http_gif[5]; 32 | extern const char http_jpg[5]; 33 | extern const char http_text[5]; 34 | extern const char http_txt[5]; 35 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/http-strings.h: -------------------------------------------------------------------------------- 1 | extern const char http_http[8]; 2 | extern const char http_200[5]; 3 | extern const char http_301[5]; 4 | extern const char http_302[5]; 5 | extern const char http_get[5]; 6 | extern const char http_10[9]; 7 | extern const char http_11[9]; 8 | extern const char http_content_type[15]; 9 | extern const char http_texthtml[10]; 10 | extern const char http_location[11]; 11 | extern const char http_host[7]; 12 | extern const char http_crnl[3]; 13 | extern const char http_index_html[12]; 14 | extern const char http_404_html[10]; 15 | extern const char http_referer[9]; 16 | extern const char http_header_200[84]; 17 | extern const char http_header_404[91]; 18 | extern const char http_content_type_plain[29]; 19 | extern const char http_content_type_html[28]; 20 | extern const char http_content_type_css [27]; 21 | extern const char http_content_type_text[28]; 22 | extern const char http_content_type_png [28]; 23 | extern const char http_content_type_gif [28]; 24 | extern const char http_content_type_jpg [29]; 25 | extern const char http_content_type_binary[43]; 26 | extern const char http_html[6]; 27 | extern const char http_shtml[7]; 28 | extern const char http_htm[5]; 29 | extern const char http_css[5]; 30 | extern const char http_png[5]; 31 | extern const char http_gif[5]; 32 | extern const char http_jpg[5]; 33 | extern const char http_text[5]; 34 | extern const char http_txt[5]; 35 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/src/netif/FILES: -------------------------------------------------------------------------------- 1 | This directory contains generic network interface device drivers that 2 | do not contain any hardware or architecture specific code. The files 3 | are: 4 | 5 | etharp.c 6 | Implements the ARP (Address Resolution Protocol) over 7 | Ethernet. The code in this file should be used together with 8 | Ethernet device drivers. Note that this module has been 9 | largely made Ethernet independent so you should be able to 10 | adapt this for other link layers (such as Firewire). 11 | 12 | ethernetif.c 13 | An example of how an Ethernet device driver could look. This 14 | file can be used as a "skeleton" for developing new Ethernet 15 | network device drivers. It uses the etharp.c ARP code. 16 | 17 | loopif.c 18 | A "loopback" network interface driver. It requires configuration 19 | through the define LWIP_LOOPIF_MULTITHREADING (see opt.h). 20 | 21 | slipif.c 22 | A generic implementation of the SLIP (Serial Line IP) 23 | protocol. It requires a sio (serial I/O) module to work. 24 | 25 | ppp/ Point-to-Point Protocol stack 26 | The PPP stack has been ported from ucip (http://ucip.sourceforge.net). 27 | It matches quite well to pppd 2.3.1 (http://ppp.samba.org), although 28 | compared to that, it has some modifications for embedded systems and 29 | the source code has been reordered a bit. -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/src/netif/FILES: -------------------------------------------------------------------------------- 1 | This directory contains generic network interface device drivers that 2 | do not contain any hardware or architecture specific code. The files 3 | are: 4 | 5 | etharp.c 6 | Implements the ARP (Address Resolution Protocol) over 7 | Ethernet. The code in this file should be used together with 8 | Ethernet device drivers. Note that this module has been 9 | largely made Ethernet independent so you should be able to 10 | adapt this for other link layers (such as Firewire). 11 | 12 | ethernetif.c 13 | An example of how an Ethernet device driver could look. This 14 | file can be used as a "skeleton" for developing new Ethernet 15 | network device drivers. It uses the etharp.c ARP code. 16 | 17 | loopif.c 18 | A "loopback" network interface driver. It requires configuration 19 | through the define LWIP_LOOPIF_MULTITHREADING (see opt.h). 20 | 21 | slipif.c 22 | A generic implementation of the SLIP (Serial Line IP) 23 | protocol. It requires a sio (serial I/O) module to work. 24 | 25 | ppp/ Point-to-Point Protocol stack 26 | The PPP stack has been ported from ucip (http://ucip.sourceforge.net). 27 | It matches quite well to pppd 2.3.1 (http://ppp.samba.org), although 28 | compared to that, it has some modifications for embedded systems and 29 | the source code has been reordered a bit. -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/files.shtml: -------------------------------------------------------------------------------- 1 | %!: /header.html 2 |

File statistics

3 |
4 | 5 | 6 | 9 | 10 | 13 | 14 | 17 | 18 | 21 | 22 | 25 | 26 | 29 | 30 | 33 |
/index.html%! file-stats /index.html 7 |
/files.shtml%! file-stats /files.shtml 11 |
/tcp.shtml%! file-stats /tcp.shtml 15 |
/stats.shtml%! file-stats /stats.shtml 19 |
/style.css%! file-stats /style.css 23 |
/404.html%! file-stats /404.html 27 |
/fade.png%! file-stats /fade.png 31 |
34 |
35 | %!: /footer.html 36 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs/style.css: -------------------------------------------------------------------------------- 1 | h1 2 | { 3 | text-align: center; 4 | font-size:14pt; 5 | font-family:arial,helvetica; 6 | font-weight:bold; 7 | padding:10px; 8 | } 9 | 10 | body 11 | { 12 | 13 | background-color: #fffeec; 14 | color:black; 15 | 16 | font-size:8pt; 17 | font-family:arial,helvetica; 18 | } 19 | 20 | .menu 21 | { 22 | margin: 4px; 23 | width:60%; 24 | 25 | padding:2px; 26 | 27 | border: solid 1px; 28 | background-color: #fffcd2; 29 | text-align:left; 30 | 31 | font-size:9pt; 32 | font-family:arial,helvetica; 33 | } 34 | 35 | div.menubox 36 | { 37 | width: 25%; 38 | border: 0; 39 | float: left; 40 | text-align: center; 41 | } 42 | 43 | .contentblock 44 | { 45 | margin: 4px; 46 | width:60%; 47 | 48 | padding:2px; 49 | 50 | border: 1px dotted; 51 | background-color: white; 52 | 53 | font-size:8pt; 54 | font-family:arial,helvetica; 55 | 56 | } 57 | 58 | p.intro 59 | { 60 | margin-left:20px; 61 | margin-right:20px; 62 | 63 | font-size:10pt; 64 | /* font-weight:bold; */ 65 | font-family:arial,helvetica; 66 | } 67 | 68 | p.clink 69 | { 70 | font-size:12pt; 71 | font-family:courier,monospace; 72 | text-align:center; 73 | } 74 | 75 | p.clink9 76 | { 77 | font-size:9pt; 78 | font-family:courier,monospace; 79 | text-align:center; 80 | } 81 | 82 | 83 | p 84 | { 85 | padding-left:10px; 86 | } 87 | 88 | p.right 89 | { 90 | text-align:right; 91 | } 92 | 93 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/ColdFire/eth.h: -------------------------------------------------------------------------------- 1 | /*! 2 | * \file eth.h 3 | * \brief Definitinos for Ethernet Frames 4 | * \version $Revision: 1.2 $ 5 | * \author Michael Norman 6 | */ 7 | 8 | #ifndef _ETH_H 9 | #define _ETH_H 10 | 11 | /*******************************************************************/ 12 | 13 | /* Ethernet standard lengths in bytes*/ 14 | #define ETH_ADDR_LEN (6) 15 | #define ETH_TYPE_LEN (2) 16 | #define ETH_CRC_LEN (4) 17 | #define ETH_MAX_DATA (1500) 18 | #define ETH_MIN_DATA (46) 19 | #define ETH_HDR_LEN (ETH_ADDR_LEN * 2 + ETH_TYPE_LEN) 20 | 21 | /* Defined Ethernet Frame Types */ 22 | #define ETH_FRM_IP (0x0800) 23 | #define ETH_FRM_ARP (0x0806) 24 | #define ETH_FRM_RARP (0x8035) 25 | #define ETH_FRM_TEST (0xA5A5) 26 | 27 | /* Maximum and Minimum Ethernet Frame Sizes */ 28 | #define ETH_MAX_FRM (ETH_HDR_LEN + ETH_MAX_DATA + ETH_CRC_LEN) 29 | #define ETH_MIN_FRM (ETH_HDR_LEN + ETH_MIN_DATA + ETH_CRC_LEN) 30 | #define ETH_MTU (ETH_HDR_LEN + ETH_MAX_DATA) 31 | 32 | /* Ethernet Addresses */ 33 | typedef uint8 ETH_ADDR[ETH_ADDR_LEN]; 34 | 35 | /* 16-bit Ethernet Frame Type, ie. Protocol */ 36 | typedef uint16 ETH_FRM_TYPE; 37 | 38 | /* Ethernet Frame Header definition */ 39 | typedef struct 40 | { 41 | ETH_ADDR dest; 42 | ETH_ADDR src; 43 | ETH_FRM_TYPE type; 44 | } ETH_HDR; 45 | 46 | /* Ethernet Frame definition */ 47 | typedef struct 48 | { 49 | ETH_HDR head; 50 | uint8* data; 51 | } ETH_FRAME; 52 | 53 | /*******************************************************************/ 54 | 55 | #endif /* _ETH_H */ 56 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OBSOLETE 2 | This repository is no longer maintained, as RISC-V support was officially added to FreeRTOS. 3 | - [FreeRTOS homepage](https://www.freertos.org/) 4 | - [FreeRTOS ports](https://www.freertos.org/RTOS_ports.html) 5 | - [Upstream repository](https://sourceforge.net/projects/freertos/) 6 | - [Quickstart guide](https://www.freertos.org/Using-FreeRTOS-on-RISC-V.html#RISC_V_QUICK_START) 7 | 8 | # FreeRTOS for RISC-V 9 | 10 | This is a port of FreeRTOS to RISC-V 11 | ## Contributors 12 | The original port to priv spec 1.7 was contributed by [Technolution](https://interactive.freertos.org/hc/en-us/community/posts/210030246-32-bit-and-64-bit-RISC-V-using-GCC) 13 | 14 | Update to priv spec 1.9: [illustris](https://github.com/illustris) 15 | 16 | Update to priv spec 1.9.1: [Abhinaya Agrawal](https://bitbucket.org/casl/freertos-riscv-v191/src) 17 | 18 | Bug fixes: [Julio Gago](https://github.com/julio-gago-metempsy) 19 | 20 | Update to priv spec 1.10: [sherrbc1](https://github.com/sherrbc1) 21 | 22 | ## Build 23 | 24 | You can edit `main()` in [main.c](Demo/riscv-spike/main.c) to add your FreeRTOS task definitions and set up the scheduler. 25 | 26 | To build FreeRTOS, 27 | 28 | ```bash 29 | cd Demo/riscv-spike 30 | export RISCV=/opt/riscv # your riscv tools path here 31 | make 32 | ``` 33 | 34 | ## Run 35 | ```bash 36 | spike riscv-spike.elf 37 | ``` 38 | 39 | ## Tested environments 40 | 41 | Tested on a Rocket RISC-V processor with local interrupt controller (Clint) using preemption. 42 | 43 | Tested in Spike and Verilator with several builds including single-task, multi-task and typical demo test including queues, semaphores, mutexes and about a dozen concurrent tasks. 44 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/COPYING: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, 2002 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | 33 | 34 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/COPYING: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, 2002 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | 33 | 34 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/COPYING: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, 2002 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | 33 | 34 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/boards/at91sam9xe-ek/at91sam9xe128/sram.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ 4 | /*-Memory Regions-*/ 5 | define symbol __ICFEDIT_region_RAM_start__ = 0x300000; 6 | define symbol __ICFEDIT_region_RAM_end__ = 0x303FFF; 7 | /*-Sizes-*/ 8 | define symbol __ICFEDIT_size_vectors__ = 0x100; 9 | define symbol __ICFEDIT_size_cstack__ = 0x800; 10 | define symbol __ICFEDIT_size_svcstack__ = 0x60; 11 | define symbol __ICFEDIT_size_irqstack__ = 0x60; 12 | define symbol __ICFEDIT_size_heap__ = 0x0; 13 | /*-Exports-*/ 14 | export symbol __ICFEDIT_region_RAM_start__; 15 | export symbol __ICFEDIT_region_RAM_end__; 16 | export symbol __ICFEDIT_size_vectors__; 17 | export symbol __ICFEDIT_size_cstack__; 18 | export symbol __ICFEDIT_size_svcstack__; 19 | export symbol __ICFEDIT_size_irqstack__; 20 | export symbol __ICFEDIT_size_heap__; 21 | /**** End of ICF editor section. ###ICF###*/ 22 | 23 | define memory mem with size = 4G; 24 | define region VEC_region = mem:[from __ICFEDIT_region_RAM_start__ size __ICFEDIT_size_vectors__]; 25 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__+__ICFEDIT_size_vectors__ to __ICFEDIT_region_RAM_end__]; 26 | 27 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 28 | define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; 29 | define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; 30 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 31 | 32 | do not initialize { section .noinit }; 33 | 34 | place in VEC_region { section .vectors }; 35 | place in RAM_region { section .cstartup, readonly, readwrite, block IRQ_STACK, block SVC_STACK, block CSTACK, block HEAP }; 36 | 37 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/boards/at91sam9xe-ek/at91sam9xe256/sram.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ 4 | /*-Memory Regions-*/ 5 | define symbol __ICFEDIT_region_RAM_start__ = 0x300000; 6 | define symbol __ICFEDIT_region_RAM_end__ = 0x307FFF; 7 | /*-Sizes-*/ 8 | define symbol __ICFEDIT_size_vectors__ = 0x100; 9 | define symbol __ICFEDIT_size_cstack__ = 0x800; 10 | define symbol __ICFEDIT_size_svcstack__ = 0x60; 11 | define symbol __ICFEDIT_size_irqstack__ = 0x60; 12 | define symbol __ICFEDIT_size_heap__ = 0x0; 13 | /*-Exports-*/ 14 | export symbol __ICFEDIT_region_RAM_start__; 15 | export symbol __ICFEDIT_region_RAM_end__; 16 | export symbol __ICFEDIT_size_vectors__; 17 | export symbol __ICFEDIT_size_cstack__; 18 | export symbol __ICFEDIT_size_svcstack__; 19 | export symbol __ICFEDIT_size_irqstack__; 20 | export symbol __ICFEDIT_size_heap__; 21 | /**** End of ICF editor section. ###ICF###*/ 22 | 23 | define memory mem with size = 4G; 24 | define region VEC_region = mem:[from __ICFEDIT_region_RAM_start__ size __ICFEDIT_size_vectors__]; 25 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__+__ICFEDIT_size_vectors__ to __ICFEDIT_region_RAM_end__]; 26 | 27 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 28 | define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; 29 | define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; 30 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 31 | 32 | do not initialize { section .noinit }; 33 | 34 | place in VEC_region { section .vectors }; 35 | place in RAM_region { section .cstartup, readonly, readwrite, block IRQ_STACK, block SVC_STACK, block CSTACK, block HEAP }; 36 | 37 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/boards/at91sam9xe-ek/at91sam9xe512/sram.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ 4 | /*-Memory Regions-*/ 5 | define symbol __ICFEDIT_region_RAM_start__ = 0x300000; 6 | define symbol __ICFEDIT_region_RAM_end__ = 0x307FFF; 7 | /*-Sizes-*/ 8 | define symbol __ICFEDIT_size_vectors__ = 0x100; 9 | define symbol __ICFEDIT_size_cstack__ = 0x800; 10 | define symbol __ICFEDIT_size_svcstack__ = 0x60; 11 | define symbol __ICFEDIT_size_irqstack__ = 0x60; 12 | define symbol __ICFEDIT_size_heap__ = 0x0; 13 | /*-Exports-*/ 14 | export symbol __ICFEDIT_region_RAM_start__; 15 | export symbol __ICFEDIT_region_RAM_end__; 16 | export symbol __ICFEDIT_size_vectors__; 17 | export symbol __ICFEDIT_size_cstack__; 18 | export symbol __ICFEDIT_size_svcstack__; 19 | export symbol __ICFEDIT_size_irqstack__; 20 | export symbol __ICFEDIT_size_heap__; 21 | /**** End of ICF editor section. ###ICF###*/ 22 | 23 | define memory mem with size = 4G; 24 | define region VEC_region = mem:[from __ICFEDIT_region_RAM_start__ size __ICFEDIT_size_vectors__]; 25 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__+__ICFEDIT_size_vectors__ to __ICFEDIT_region_RAM_end__]; 26 | 27 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 28 | define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; 29 | define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; 30 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 31 | 32 | do not initialize { section .noinit }; 33 | 34 | place in VEC_region { section .vectors }; 35 | place in RAM_region { section .cstartup, readonly, readwrite, block IRQ_STACK, block SVC_STACK, block CSTACK, block HEAP }; 36 | 37 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/STR91x/arch/lib.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LIB_H__ 33 | #define __LIB_H__ 34 | 35 | #include 36 | 37 | 38 | #endif /* __LIB_H__ */ 39 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/STR91x/arch/cpu.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __CPU_H__ 33 | #define __CPU_H__ 34 | 35 | #define BYTE_ORDER LITTLE_ENDIAN 36 | 37 | #endif /* __CPU_H__ */ 38 | -------------------------------------------------------------------------------- /Source/string.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | void* memcpy(void* dest, const void* src, size_t len) 6 | { 7 | const char* s = src; 8 | char *d = dest; 9 | 10 | if ((((uintptr_t)dest | (uintptr_t)src) & (sizeof(uintptr_t)-1)) == 0) { 11 | while ((void*)d < (dest + len - (sizeof(uintptr_t)-1))) { 12 | *(uintptr_t*)d = *(const uintptr_t*)s; 13 | d += sizeof(uintptr_t); 14 | s += sizeof(uintptr_t); 15 | } 16 | } 17 | 18 | while (d < (char*)(dest + len)) 19 | *d++ = *s++; 20 | 21 | return dest; 22 | } 23 | 24 | void* memset(void* dest, int byte, size_t len) 25 | { 26 | if ((((uintptr_t)dest | len) & (sizeof(uintptr_t)-1)) == 0) { 27 | uintptr_t word = byte & 0xFF; 28 | word |= word << 8; 29 | word |= word << 16; 30 | word |= word << 16 << 16; 31 | 32 | uintptr_t *d = dest; 33 | while (d < (uintptr_t*)(dest + len)) 34 | *d++ = word; 35 | } else { 36 | char *d = dest; 37 | while (d < (char*)(dest + len)) 38 | *d++ = byte; 39 | } 40 | return dest; 41 | } 42 | 43 | size_t strlen(const char *s) 44 | { 45 | const char *p = s; 46 | while (*p) 47 | p++; 48 | return p - s; 49 | } 50 | 51 | int strcmp(const char* s1, const char* s2) 52 | { 53 | unsigned char c1, c2; 54 | 55 | do { 56 | c1 = *s1++; 57 | c2 = *s2++; 58 | } while (c1 != 0 && c1 == c2); 59 | 60 | return c1 - c2; 61 | } 62 | 63 | char* strcpy(char* dest, const char* src) 64 | { 65 | char* d = dest; 66 | while ((*d++ = *src++)) 67 | ; 68 | return dest; 69 | } 70 | 71 | long atol(const char* str) 72 | { 73 | long res = 0; 74 | int sign = 0; 75 | 76 | while (*str == ' ') 77 | str++; 78 | 79 | if (*str == '-' || *str == '+') { 80 | sign = *str == '-'; 81 | str++; 82 | } 83 | 84 | while (*str) { 85 | res *= 10; 86 | res += *str++ - '0'; 87 | } 88 | 89 | return sign ? -res : res; 90 | } 91 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/src/core/ipv4/inet.c: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Functions common to all TCP/IPv4 modules, such as the byte order functions. 4 | * 5 | */ 6 | 7 | /* 8 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 9 | * All rights reserved. 10 | * 11 | * Redistribution and use in source and binary forms, with or without modification, 12 | * are permitted provided that the following conditions are met: 13 | * 14 | * 1. Redistributions of source code must retain the above copyright notice, 15 | * this list of conditions and the following disclaimer. 16 | * 2. Redistributions in binary form must reproduce the above copyright notice, 17 | * this list of conditions and the following disclaimer in the documentation 18 | * and/or other materials provided with the distribution. 19 | * 3. The name of the author may not be used to endorse or promote products 20 | * derived from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 23 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 24 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 25 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 27 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 30 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 31 | * OF SUCH DAMAGE. 32 | * 33 | * This file is part of the lwIP TCP/IP stack. 34 | * 35 | * Author: Adam Dunkels 36 | * 37 | */ 38 | 39 | #include "lwip/opt.h" 40 | 41 | #include "lwip/inet.h" 42 | 43 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/include/netif/loopif.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __NETIF_LOOPIF_H__ 33 | #define __NETIF_LOOPIF_H__ 34 | 35 | #include "lwip/netif.h" 36 | 37 | err_t loopif_init(struct netif *netif); 38 | 39 | #endif /* __NETIF_LOOPIF_H__ */ 40 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/ColdFire/arch/cpu.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __CPU_H__ 33 | #define __CPU_H__ 34 | 35 | /* ------------------------ Defines --------------------------------------- */ 36 | #define BYTE_ORDER BIG_ENDIAN 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/STR91x/arch/perf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __PERF_H__ 33 | #define __PERF_H__ 34 | 35 | #define PERF_START /* null definition */ 36 | #define PERF_STOP(x) /* null definition */ 37 | 38 | #endif /* __PERF_H__ */ 39 | -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/inc/stm32fxxx_eth_lib.h: -------------------------------------------------------------------------------- 1 | /******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** 2 | * File Name : stm32fxxx_eth_lib.h 3 | * Author : MCD Application Team 4 | * Version : V2.0.2 5 | * Date : 07/11/2008 6 | * Description : This file includes the peripherals header files in the 7 | * user application. 8 | ******************************************************************************** 9 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 10 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. 11 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, 12 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE 13 | * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING 14 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 15 | *******************************************************************************/ 16 | 17 | /* Define to prevent recursive inclusion -------------------------------------*/ 18 | #ifndef __STM32FXXX_ETH_LIB_H 19 | #define __STM32FXXX_ETH_LIB_H 20 | 21 | /* Includes ------------------------------------------------------------------*/ 22 | #include "stm32fxxx_eth_map.h" 23 | 24 | #ifdef _ETH_MAC 25 | //RP_Modif 26 | #include "ipport.h" 27 | #include "netbuf.h" 28 | #include "stm32fxxx_eth.h" 29 | #endif /*_ETH_MAC */ 30 | 31 | /* Exported types ------------------------------------------------------------*/ 32 | /* Exported constants --------------------------------------------------------*/ 33 | /* Exported macro ------------------------------------------------------------*/ 34 | /* Exported functions ------------------------------------------------------- */ 35 | void eth_debug(void); 36 | 37 | #endif /* __STM32FXXX_ETH_LIB_H */ 38 | 39 | /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/ 40 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/win32/include/arch/perf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | * Author: Adam Dunkels 32 | * 33 | */ 34 | #ifndef __PERF_H__ 35 | #define __PERF_H__ 36 | 37 | #define PERF_START /* null definition */ 38 | #define PERF_STOP(x) /* null definition */ 39 | 40 | #endif /* __PERF_H__ */ 41 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/include/netif/slipif.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | * Author: Adam Dunkels 32 | * 33 | */ 34 | #ifndef __NETIF_SLIPIF_H__ 35 | #define __NETIF_SLIPIF_H__ 36 | 37 | #include "lwip/netif.h" 38 | 39 | err_t slipif_init(struct netif * netif); 40 | 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/ColdFire/arch/perf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __PERF_H__ 33 | #define __PERF_H__ 34 | 35 | /* ------------------------ Defines --------------------------------------- */ 36 | #define PERF_START /* null definition */ 37 | #define PERF_STOP(x) /* null definition */ 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/STR91x/arch/init.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __ARCH_INIT_H__ 33 | #define __ARCH_INIT_H__ 34 | 35 | #define TCPIP_INIT_DONE(arg) tcpip_init_done(arg) 36 | 37 | void tcpip_init_done(void *); 38 | int wait_for_tcpip_init(void); 39 | 40 | #endif /* __ARCH_INIT_H__ */ 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/MicroBlaze-Ethernet-Lite/include/arch/perf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | * Author: Adam Dunkels 32 | * 33 | */ 34 | #ifndef __PERF_H__ 35 | #define __PERF_H__ 36 | 37 | #define PERF_START /* null definition */ 38 | #define PERF_STOP(x) /* null definition */ 39 | 40 | #endif /* __PERF_H__ */ 41 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/win32/lwipcfg_msvc.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Additional settings for the win32 port. 3 | * Copy this to lwipcfg_msvc.h and make the config changes you need. 4 | */ 5 | 6 | /* configuration for this port */ 7 | #define PPP_USERNAME "Admin" 8 | #define PPP_PASSWORD "pass" 9 | 10 | /** Define this to the index of the windows network adapter to use */ 11 | #define PACKET_LIB_ADAPTER_NR 2 12 | /** Define this to the GUID of the windows network adapter to use 13 | * or NOT define this if you want PACKET_LIB_ADAPTER_NR to be used */ 14 | /*#define PACKET_LIB_ADAPTER_GUID "00000000-0000-0000-0000-000000000000"*/ 15 | /*#define PACKET_LIB_GET_ADAPTER_NETADDRESS(addr) IP4_ADDR((addr), 192,168,1,0)*/ 16 | /*#define PACKET_LIB_QUIET*/ 17 | 18 | #define LWIP_PORT_INIT_IPADDR(addr) IP4_ADDR((addr), 192,168,0,200) 19 | #define LWIP_PORT_INIT_GW(addr) IP4_ADDR((addr), 192,168,0,3) 20 | #define LWIP_PORT_INIT_NETMASK(addr) IP4_ADDR((addr), 255,255,255,0) 21 | 22 | /* remember to change this MAC address to suit your needs! 23 | the last octet will be increased by netif->num for each netif */ 24 | #define LWIP_MAC_ADDR_BASE {0x00,0x01,0x02,0x03,0x04,0x05} 25 | 26 | /* configuration for applications */ 27 | 28 | #define LWIP_CHARGEN_APP 0 29 | #define LWIP_DNS_APP 0 30 | #define LWIP_HTTPD_APP 1 31 | /* Set this to 1 to use the netconn http server, 32 | * otherwise the raw api server will be used. */ 33 | /*#define LWIP_HTTPD_APP_NETCONN */ 34 | #define LWIP_NETBIOS_APP 0 35 | #define LWIP_NETIO_APP 0 36 | #define LWIP_PING_APP 0 37 | #define LWIP_RTP_APP 0 38 | #define LWIP_SHELL_APP 0 39 | #define LWIP_SNTP_APP 0 40 | #define LWIP_SOCKET_EXAMPLES_APP 0 41 | #define LWIP_TCPECHO_APP 0 42 | /* Set this to 1 to use the netconn tcpecho server, 43 | * otherwise the raw api server will be used. */ 44 | /*#define LWIP_TCPECHO_APP_NETCONN */ 45 | #define LWIP_UDPECHO_APP 0 46 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/src/include/lwip/init.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LWIP_INIT_H__ 33 | #define __LWIP_INIT_H__ 34 | 35 | #include "lwip/opt.h" 36 | 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | /* Modules initialization */ 42 | void lwip_init(void); 43 | 44 | #ifdef __cplusplus 45 | } 46 | #endif 47 | 48 | #endif /* __LWIP_INIT_H__ */ 49 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/FreeTCPIP/net/clock-arch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the uIP TCP/IP stack 30 | * 31 | * $Id: clock-arch.h,v 1.2 2006/06/12 08:00:31 adam Exp $ 32 | */ 33 | 34 | #ifndef __CLOCK_ARCH_H__ 35 | #define __CLOCK_ARCH_H__ 36 | 37 | #include "FreeRTOS.h" 38 | 39 | typedef TickType_t clock_time_t; 40 | #define CLOCK_CONF_SECOND configTICK_RATE_HZ 41 | 42 | #endif /* __CLOCK_ARCH_H__ */ 43 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/FreeRTOS-uIP/clock-arch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the uIP TCP/IP stack 30 | * 31 | * $Id: clock-arch.h,v 1.2 2006/06/12 08:00:31 adam Exp $ 32 | */ 33 | 34 | #ifndef __CLOCK_ARCH_H__ 35 | #define __CLOCK_ARCH_H__ 36 | 37 | #include "FreeRTOS.h" 38 | 39 | typedef unsigned long clock_time_t; 40 | #define CLOCK_CONF_SECOND configTICK_RATE_HZ 41 | 42 | #endif /* __CLOCK_ARCH_H__ */ 43 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/src/include/lwip/def.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LWIP_DEF_H__ 33 | #define __LWIP_DEF_H__ 34 | 35 | /* this might define NULL already */ 36 | #include "lwip/arch.h" 37 | 38 | #define LWIP_MAX(x , y) (((x) > (y)) ? (x) : (y)) 39 | #define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) 40 | 41 | #ifndef NULL 42 | #define NULL ((void *)0) 43 | #endif 44 | 45 | 46 | #endif /* __LWIP_DEF_H__ */ 47 | 48 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/include/lwip/def.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LWIP_DEF_H__ 33 | #define __LWIP_DEF_H__ 34 | 35 | /* this might define NULL already */ 36 | #include "arch/cc.h" 37 | 38 | #define LWIP_MAX(x , y) (x) > (y) ? (x) : (y) 39 | #define LWIP_MIN(x , y) (x) < (y) ? (x) : (y) 40 | 41 | #ifndef NULL 42 | #define NULL ((void *)0) 43 | #endif 44 | 45 | 46 | #endif /* __LWIP_DEF_H__ */ 47 | 48 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/src/include/lwip/def.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LWIP_DEF_H__ 33 | #define __LWIP_DEF_H__ 34 | 35 | /* this might define NULL already */ 36 | #include "lwip/arch.h" 37 | 38 | #define LWIP_MAX(x , y) (((x) > (y)) ? (x) : (y)) 39 | #define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) 40 | 41 | #ifndef NULL 42 | #define NULL ((void *)0) 43 | #endif 44 | 45 | 46 | #endif /* __LWIP_DEF_H__ */ 47 | 48 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/FreeTCPIP/apps/httpd/makefsdata: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | open(OUTPUT, "> httpd-fsdata.c"); 4 | 5 | chdir("httpd-fs"); 6 | 7 | opendir(DIR, "."); 8 | @files = grep { !/^\./ && !/(CVS|~)/ } readdir(DIR); 9 | closedir(DIR); 10 | 11 | foreach $file (@files) { 12 | 13 | if(-d $file && $file !~ /^\./) { 14 | print "Processing directory $file\n"; 15 | opendir(DIR, $file); 16 | @newfiles = grep { !/^\./ && !/(CVS|~)/ } readdir(DIR); 17 | closedir(DIR); 18 | printf "Adding files @newfiles\n"; 19 | @files = (@files, map { $_ = "$file/$_" } @newfiles); 20 | next; 21 | } 22 | } 23 | 24 | foreach $file (@files) { 25 | if(-f $file) { 26 | 27 | print "Adding file $file\n"; 28 | 29 | open(FILE, $file) || die "Could not open file $file\n"; 30 | 31 | $file =~ s-^-/-; 32 | $fvar = $file; 33 | $fvar =~ s-/-_-g; 34 | $fvar =~ s-\.-_-g; 35 | # for AVR, add PROGMEM here 36 | print(OUTPUT "static const unsigned char data".$fvar."[] = {\n"); 37 | print(OUTPUT "\t/* $file */\n\t"); 38 | for($j = 0; $j < length($file); $j++) { 39 | printf(OUTPUT "%#02x, ", unpack("C", substr($file, $j, 1))); 40 | } 41 | printf(OUTPUT "0,\n"); 42 | 43 | 44 | $i = 0; 45 | while(read(FILE, $data, 1)) { 46 | if($i == 0) { 47 | print(OUTPUT "\t"); 48 | } 49 | printf(OUTPUT "%#02x, ", unpack("C", $data)); 50 | $i++; 51 | if($i == 10) { 52 | print(OUTPUT "\n"); 53 | $i = 0; 54 | } 55 | } 56 | print(OUTPUT "0};\n\n"); 57 | close(FILE); 58 | push(@fvars, $fvar); 59 | push(@pfiles, $file); 60 | } 61 | } 62 | 63 | for($i = 0; $i < @fvars; $i++) { 64 | $file = $pfiles[$i]; 65 | $fvar = $fvars[$i]; 66 | 67 | if($i == 0) { 68 | $prevfile = "NULL"; 69 | } else { 70 | $prevfile = "file" . $fvars[$i - 1]; 71 | } 72 | print(OUTPUT "const struct httpd_fsdata_file file".$fvar."[] = {{$prevfile, data$fvar, "); 73 | print(OUTPUT "data$fvar + ". (length($file) + 1) .", "); 74 | print(OUTPUT "sizeof(data$fvar) - ". (length($file) + 1) ."}};\n\n"); 75 | } 76 | 77 | print(OUTPUT "#define HTTPD_FS_ROOT file$fvars[$i - 1]\n\n"); 78 | print(OUTPUT "#define HTTPD_FS_NUMFILES $i\n"); 79 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/src/include/netif/slipif.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | * Author: Adam Dunkels 32 | * 33 | */ 34 | #ifndef __NETIF_SLIPIF_H__ 35 | #define __NETIF_SLIPIF_H__ 36 | 37 | #include "lwip/netif.h" 38 | 39 | #ifdef __cplusplus 40 | extern "C" { 41 | #endif 42 | 43 | err_t slipif_init(struct netif * netif); 44 | void slipif_poll(struct netif *netif); 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif 49 | 50 | #endif 51 | 52 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/src/include/netif/slipif.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | * Author: Adam Dunkels 32 | * 33 | */ 34 | #ifndef __NETIF_SLIPIF_H__ 35 | #define __NETIF_SLIPIF_H__ 36 | 37 | #include "lwip/netif.h" 38 | 39 | #ifdef __cplusplus 40 | extern "C" { 41 | #endif 42 | 43 | err_t slipif_init(struct netif * netif); 44 | void slipif_poll(struct netif *netif); 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif 49 | 50 | #endif 51 | 52 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/src/include/netif/slipif.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | * Author: Adam Dunkels 32 | * 33 | */ 34 | #ifndef __NETIF_SLIPIF_H__ 35 | #define __NETIF_SLIPIF_H__ 36 | 37 | #include "lwip/netif.h" 38 | 39 | #ifdef __cplusplus 40 | extern "C" { 41 | #endif 42 | 43 | err_t slipif_init(struct netif * netif); 44 | 45 | #ifdef __cplusplus 46 | } 47 | #endif 48 | 49 | #endif 50 | 51 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/src/include/netif/loopif.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __NETIF_LOOPIF_H__ 33 | #define __NETIF_LOOPIF_H__ 34 | 35 | #include "lwip/netif.h" 36 | #include "lwip/err.h" 37 | 38 | #ifdef __cplusplus 39 | extern "C" { 40 | #endif 41 | 42 | #if !LWIP_LOOPIF_MULTITHREADING 43 | void loopif_poll(struct netif *netif); 44 | #endif 45 | 46 | err_t loopif_init(struct netif *netif); 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | 52 | #endif /* __NETIF_LOOPIF_H__ */ 53 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/src/include/netif/loopif.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __NETIF_LOOPIF_H__ 33 | #define __NETIF_LOOPIF_H__ 34 | 35 | #include "lwip/opt.h" 36 | #include "lwip/netif.h" 37 | #include "lwip/err.h" 38 | 39 | #ifdef __cplusplus 40 | extern "C" { 41 | #endif 42 | 43 | #if !LWIP_NETIF_LOOPBACK_MULTITHREADING 44 | #define loopif_poll netif_poll 45 | #endif /* !LWIP_NETIF_LOOPBACK_MULTITHREADING */ 46 | 47 | err_t loopif_init(struct netif *netif); 48 | 49 | #ifdef __cplusplus 50 | } 51 | #endif 52 | 53 | #endif /* __NETIF_LOOPIF_H__ */ 54 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/webserver.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Adam Dunkels. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above 11 | * copyright notice, this list of conditions and the following 12 | * disclaimer in the documentation and/or other materials provided 13 | * with the distribution. 14 | * 3. The name of the author may not be used to endorse or promote 15 | * products derived from this software without specific prior 16 | * written permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 19 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 24 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 26 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 27 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * This file is part of the uIP TCP/IP stack 31 | * 32 | * $Id: webserver.h,v 1.2 2006/06/11 21:46:38 adam Exp $ 33 | * 34 | */ 35 | #ifndef __WEBSERVER_H__ 36 | #define __WEBSERVER_H__ 37 | 38 | #include "httpd.h" 39 | 40 | typedef struct httpd_state uip_tcp_appstate_t; 41 | /* UIP_APPCALL: the name of the application function. This function 42 | must return void and take no arguments (i.e., C type "void 43 | appfunc(void)"). */ 44 | #ifndef UIP_APPCALL 45 | #define UIP_APPCALL httpd_appcall 46 | #endif 47 | 48 | 49 | #endif /* __WEBSERVER_H__ */ 50 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/include/ipv4/lwip/ip_frag.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Jani Monoses 30 | * 31 | */ 32 | 33 | #ifndef __LWIP_IP_FRAG_H__ 34 | #define __LWIP_IP_FRAG_H__ 35 | 36 | #include "lwip/opt.h" 37 | #include "lwip/err.h" 38 | #include "lwip/pbuf.h" 39 | #include "lwip/netif.h" 40 | #include "lwip/ip_addr.h" 41 | 42 | void ip_frag_init(void); 43 | void ip_reass_tmr(void); 44 | struct pbuf * ip_reass(struct pbuf *p); 45 | err_t ip_frag(struct pbuf *p, struct netif *netif, struct ip_addr *dest); 46 | 47 | #endif /* __LWIP_IP_FRAG_H__ */ 48 | 49 | 50 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/win32/WinPCap/pcap/bluetooth.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006 Paolo Abeni (Italy) 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 9 | * 1. Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * 2. Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * 3. The name of the author may not be used to endorse or promote 15 | * products derived from this software without specific prior written 16 | * permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * bluetooth data struct 31 | * By Paolo Abeni 32 | * 33 | * @(#) $Header: /tcpdump/master/libpcap/pcap/bluetooth.h,v 1.1 2007/09/22 02:10:17 guy Exp $ 34 | */ 35 | 36 | #ifndef _PCAP_BLUETOOTH_STRUCTS_H__ 37 | #define _PCAP_BLUETOOTH_STRUCTS_H__ 38 | 39 | /* 40 | * Header prepended libpcap to each bluetooth h:4 frame. 41 | * fields are in network byte order 42 | */ 43 | typedef struct _pcap_bluetooth_h4_header { 44 | u_int32_t direction; /* if first bit is set direction is incoming */ 45 | } pcap_bluetooth_h4_header; 46 | 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/makefsdata: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | open(OUTPUT, "> httpd-fsdata.c"); 4 | 5 | chdir("httpd-fs"); 6 | 7 | opendir(DIR, "."); 8 | @files = grep { !/^\./ && !/(CVS|~)/ } readdir(DIR); 9 | closedir(DIR); 10 | 11 | foreach $file (@files) { 12 | 13 | if(-d $file && $file !~ /^\./) { 14 | print "Processing directory $file\n"; 15 | opendir(DIR, $file); 16 | @newfiles = grep { !/^\./ && !/(CVS|~)/ } readdir(DIR); 17 | closedir(DIR); 18 | printf "Adding files @newfiles\n"; 19 | @files = (@files, map { $_ = "$file/$_" } @newfiles); 20 | next; 21 | } 22 | } 23 | 24 | foreach $file (@files) { 25 | if(-f $file) { 26 | 27 | print "Adding file $file\n"; 28 | 29 | open(FILE, $file) || die "Could not open file $file\n"; 30 | 31 | $file =~ s-^-/-; 32 | $fvar = $file; 33 | $fvar =~ s-/-_-g; 34 | $fvar =~ s-\.-_-g; 35 | # for AVR, add PROGMEM here 36 | print(OUTPUT "static const unsigned char data".$fvar."[] = {\n"); 37 | print(OUTPUT "\t/* $file */\n\t"); 38 | for($j = 0; $j < length($file); $j++) { 39 | printf(OUTPUT "%#02x, ", unpack("C", substr($file, $j, 1))); 40 | } 41 | printf(OUTPUT "0,\n"); 42 | 43 | 44 | $i = 0; 45 | while(read(FILE, $data, 1)) { 46 | if($i == 0) { 47 | print(OUTPUT "\t"); 48 | } 49 | printf(OUTPUT "%#02x, ", unpack("C", $data)); 50 | $i++; 51 | if($i == 10) { 52 | print(OUTPUT "\n"); 53 | $i = 0; 54 | } 55 | } 56 | print(OUTPUT "0};\n\n"); 57 | close(FILE); 58 | push(@fvars, $fvar); 59 | push(@pfiles, $file); 60 | } 61 | } 62 | 63 | for($i = 0; $i < @fvars; $i++) { 64 | $file = $pfiles[$i]; 65 | $fvar = $fvars[$i]; 66 | 67 | if($i == 0) { 68 | $prevfile = "NULL"; 69 | } else { 70 | $prevfile = "file" . $fvars[$i - 1]; 71 | } 72 | print(OUTPUT "const struct httpd_fsdata_file file".$fvar."[] = {{$prevfile, data$fvar, "); 73 | print(OUTPUT "data$fvar + ". (length($file) + 1) .", "); 74 | print(OUTPUT "sizeof(data$fvar) - ". (length($file) + 1) ."}};\n\n"); 75 | } 76 | 77 | print(OUTPUT "#define HTTPD_FS_ROOT file$fvars[$i - 1]\n\n"); 78 | print(OUTPUT "#define HTTPD_FS_NUMFILES $i\n"); 79 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/win32/WinPCap/pcap-namedb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1994, 1996 3 | * The Regents of the University of California. All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. All advertising materials mentioning features or use of this software 14 | * must display the following acknowledgement: 15 | * This product includes software developed by the Computer Systems 16 | * Engineering Group at Lawrence Berkeley Laboratory. 17 | * 4. Neither the name of the University nor of the Laboratory may be used 18 | * to endorse or promote products derived from this software without 19 | * specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 | * SUCH DAMAGE. 32 | * 33 | * @(#) $Header: /tcpdump/master/libpcap/pcap-namedb.h,v 1.13 2006/10/04 18:13:32 guy Exp $ (LBL) 34 | */ 35 | 36 | /* 37 | * For backwards compatibility. 38 | * 39 | * Note to OS vendors: do NOT get rid of this file! Some applications 40 | * might expect to be able to include . 41 | */ 42 | #include 43 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/ColdFire/arch/sys_arch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __SYS_RTXC_H__ 33 | #define __SYS_RTXC_H__ 34 | 35 | #include "FreeRTOS.h" 36 | #include "task.h" 37 | #include "queue.h" 38 | #include "semphr.h" 39 | 40 | #define SYS_MBOX_NULL (QueueHandle_t)0 41 | #define SYS_SEM_NULL (SemaphoreHandle_t)0 42 | 43 | typedef SemaphoreHandle_t sys_sem_t; 44 | typedef QueueHandle_t sys_mbox_t; 45 | typedef TaskHandle_t sys_thread_t; 46 | 47 | /* Message queue constants. */ 48 | #define archMESG_QUEUE_LENGTH ( 6 ) 49 | #define archPOST_BLOCK_TIME_MS ( ( unsigned long ) 10000 ) 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/win32/WinPCap/pcap/vlan.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 3 | * The Regents of the University of California. All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. All advertising materials mentioning features or use of this software 14 | * must display the following acknowledgement: 15 | * This product includes software developed by the University of 16 | * California, Berkeley and its contributors. 17 | * 4. Neither the name of the University nor the names of its contributors 18 | * may be used to endorse or promote products derived from this software 19 | * without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 | * SUCH DAMAGE. 32 | * 33 | * @(#) $Header: /tcpdump/master/libpcap/pcap/vlan.h,v 1.1.2.2 2008-08-06 07:45:59 guy Exp $ 34 | */ 35 | 36 | #ifndef lib_pcap_vlan_h 37 | #define lib_pcap_vlan_h 38 | 39 | struct vlan_tag { 40 | u_int16_t vlan_tpid; /* ETH_P_8021Q */ 41 | u_int16_t vlan_tci; /* VLAN TCI */ 42 | }; 43 | 44 | #define VLAN_TAG_LEN 4 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/inc/stm32f10x_crc.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_crc.h 4 | * @author MCD Application Team 5 | * @version V3.0.0 6 | * @date 04/06/2009 7 | * @brief This file contains all the functions prototypes for the CRC firmware 8 | * library. 9 | ****************************************************************************** 10 | * @copy 11 | * 12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 | * 19 | *

© COPYRIGHT 2009 STMicroelectronics

20 | */ 21 | 22 | /* Define to prevent recursive inclusion -------------------------------------*/ 23 | #ifndef __STM32F10x_CRC_H 24 | #define __STM32F10x_CRC_H 25 | 26 | /* Includes ------------------------------------------------------------------*/ 27 | #include "stm32f10x.h" 28 | 29 | /** @addtogroup StdPeriph_Driver 30 | * @{ 31 | */ 32 | 33 | /** @addtogroup CRC 34 | * @{ 35 | */ 36 | 37 | /** @defgroup CRC_Exported_Types 38 | * @{ 39 | */ 40 | 41 | /** 42 | * @} 43 | */ 44 | 45 | /** @defgroup CRC_Exported_Constants 46 | * @{ 47 | */ 48 | 49 | /** 50 | * @} 51 | */ 52 | 53 | /** @defgroup CRC_Exported_Macros 54 | * @{ 55 | */ 56 | 57 | /** 58 | * @} 59 | */ 60 | 61 | /** @defgroup CRC_Exported_Functions 62 | * @{ 63 | */ 64 | 65 | void CRC_ResetDR(void); 66 | uint32_t CRC_CalcCRC(uint32_t Data); 67 | uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength); 68 | uint32_t CRC_GetCRC(void); 69 | void CRC_SetIDRegister(uint8_t IDValue); 70 | uint8_t CRC_GetIDRegister(void); 71 | 72 | #endif /* __STM32F10x_CRC_H */ 73 | /** 74 | * @} 75 | */ 76 | 77 | /** 78 | * @} 79 | */ 80 | 81 | /** 82 | * @} 83 | */ 84 | 85 | /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/ 86 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/STR91x/arch/sys_arch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __SYS_RTXC_H__ 33 | #define __SYS_RTXC_H__ 34 | 35 | #include "FreeRTOS.h" 36 | #include "task.h" 37 | #include "queue.h" 38 | #include "semphr.h" 39 | 40 | #define SYS_MBOX_NULL (QueueHandle_t)0 41 | #define SYS_SEM_NULL (SemaphoreHandle_t)0 42 | 43 | typedef SemaphoreHandle_t sys_sem_t; 44 | typedef QueueHandle_t sys_mbox_t; 45 | typedef TaskHandle_t sys_thread_t; 46 | 47 | /* Message queue constants. */ 48 | #define archMESG_QUEUE_LENGTH ( 6 ) 49 | #define archPOST_BLOCK_TIME_MS ( ( unsigned long ) 10000 ) 50 | 51 | #endif /* __SYS_RTXC_H__ */ 52 | 53 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/api/err.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | 33 | #include "lwip/err.h" 34 | 35 | #ifdef LWIP_DEBUG 36 | 37 | static char *err_strerr[] = {"Ok.", 38 | "Out of memory error.", 39 | "Buffer error.", 40 | "Connection aborted.", 41 | "Connection reset.", 42 | "Connection closed.", 43 | "Not connected.", 44 | "Illegal value.", 45 | "Illegal argument.", 46 | "Routing problem.", 47 | "Address in use." 48 | }; 49 | 50 | 51 | char * 52 | lwip_strerr(err_t err) 53 | { 54 | return err_strerr[-err]; 55 | 56 | } 57 | 58 | 59 | #endif /* LWIP_DEBUG */ 60 | -------------------------------------------------------------------------------- /Demo/Common/drivers/ST/STM32F10xFWLib/inc/cortexm3_macro.h: -------------------------------------------------------------------------------- 1 | /******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** 2 | * File Name : cortexm3_macro.h 3 | * Author : MCD Application Team 4 | * Date First Issued : 09/29/2006 5 | * Description : Header file for cortexm3_macro.s. 6 | ******************************************************************************** 7 | * History: 8 | * 04/02/2007: V0.2 9 | * 02/05/2007: V0.1 10 | * 09/29/2006: V0.01 11 | ******************************************************************************** 12 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. 14 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, 15 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE 16 | * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING 17 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 | *******************************************************************************/ 19 | 20 | /* Define to prevent recursive inclusion -------------------------------------*/ 21 | #ifndef __CORTEXM3_MACRO_H 22 | #define __CORTEXM3_MACRO_H 23 | 24 | /* Includes ------------------------------------------------------------------*/ 25 | #include "stm32f10x_type.h" 26 | 27 | /* Exported types ------------------------------------------------------------*/ 28 | /* Exported constants --------------------------------------------------------*/ 29 | /* Exported macro ------------------------------------------------------------*/ 30 | /* Exported functions ------------------------------------------------------- */ 31 | void __WFI(void); 32 | void __WFE(void); 33 | void __SEV(void); 34 | void __ISB(void); 35 | void __DSB(void); 36 | void __DMB(void); 37 | void __SVC(void); 38 | u32 __MRS_CONTROL(void); 39 | void __MSR_CONTROL(u32 Control); 40 | void __SETPRIMASK(void); 41 | void __RESETPRIMASK(void); 42 | void __SETFAULTMASK(void); 43 | void __RESETFAULTMASK(void); 44 | void __BASEPRICONFIG(u32 NewPriority); 45 | u32 __GetBASEPRI(void); 46 | u16 __REV_HalfWord(u16 Data); 47 | u32 __REV_Word(u32 Data); 48 | 49 | #endif /* __CORTEXM3_MACRO_H */ 50 | 51 | /******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****/ 52 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/include/lwip/memp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | 33 | #ifndef __LWIP_MEMP_H__ 34 | #define __LWIP_MEMP_H__ 35 | 36 | #include "lwip/opt.h" 37 | 38 | typedef enum { 39 | MEMP_PBUF, 40 | MEMP_RAW_PCB, 41 | MEMP_UDP_PCB, 42 | MEMP_TCP_PCB, 43 | MEMP_TCP_PCB_LISTEN, 44 | MEMP_TCP_SEG, 45 | 46 | MEMP_NETBUF, 47 | MEMP_NETCONN, 48 | MEMP_API_MSG, 49 | MEMP_TCPIP_MSG, 50 | 51 | MEMP_SYS_TIMEOUT, 52 | 53 | MEMP_MAX 54 | } memp_t; 55 | 56 | void memp_init(void); 57 | 58 | void *memp_malloc(memp_t type); 59 | void *memp_realloc(memp_t fromtype, memp_t totype, void *mem); 60 | void memp_free(memp_t type, void *mem); 61 | 62 | #endif /* __LWIP_MEMP_H__ */ 63 | 64 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2005, Adam Dunkels. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote 14 | * products derived from this software without specific prior 15 | * written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 23 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | * 29 | * This file is part of the uIP TCP/IP stack. 30 | * 31 | * $Id: httpd.h,v 1.2 2006/06/11 21:46:38 adam Exp $ 32 | * 33 | */ 34 | 35 | #ifndef __HTTPD_H__ 36 | #define __HTTPD_H__ 37 | 38 | #include "psock.h" 39 | #include "httpd-fs.h" 40 | 41 | struct httpd_state { 42 | unsigned char timer; 43 | struct psock sin, sout; 44 | struct pt outputpt, scriptpt; 45 | char inputbuf[50]; 46 | char filename[20]; 47 | char state; 48 | struct httpd_fs_file file; 49 | int len; 50 | char *scriptptr; 51 | int scriptlen; 52 | 53 | unsigned short count; 54 | }; 55 | 56 | void httpd_init(void); 57 | void httpd_appcall(void); 58 | 59 | void httpd_log(char *msg); 60 | void httpd_log_file(u16_t *requester, char *file); 61 | 62 | #endif /* __HTTPD_H__ */ 63 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/FreeTCPIP/apps/httpd/httpd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2005, Adam Dunkels. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote 14 | * products derived from this software without specific prior 15 | * written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 23 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | * 29 | * This file is part of the uIP TCP/IP stack. 30 | * 31 | * $Id: httpd.h,v 1.2 2006/06/11 21:46:38 adam Exp $ 32 | * 33 | */ 34 | #ifndef __HTTPD_H__ 35 | #define __HTTPD_H__ 36 | 37 | #include "net/psock.h" 38 | #include "httpd-fs.h" 39 | 40 | struct httpd_state 41 | { 42 | unsigned char timer; 43 | struct psock sin, sout; 44 | struct pt outputpt, scriptpt; 45 | char inputbuf[50]; 46 | char filename[20]; 47 | char state; 48 | struct httpd_fs_file file; 49 | int len; 50 | char *scriptptr; 51 | int scriptlen; 52 | 53 | unsigned short count; 54 | }; 55 | 56 | void httpd_init( void ); 57 | void httpd_appcall( void ); 58 | 59 | void httpd_log( char *msg ); 60 | void httpd_log_file( u16_t *requester, char *file ); 61 | #endif /* __HTTPD_H__ */ 62 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/STR91x/arch/cc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __CC_H__ 33 | #define __CC_H__ 34 | 35 | #include 36 | #include 37 | 38 | #include "cpu.h" 39 | 40 | typedef unsigned char u8_t; 41 | typedef signed char s8_t; 42 | typedef unsigned short u16_t; 43 | typedef signed short s16_t; 44 | typedef unsigned long u32_t; 45 | typedef signed long s32_t; 46 | typedef u32_t mem_ptr_t; 47 | typedef int sys_prot_t; 48 | 49 | #define PACK_STRUCT_BEGIN 50 | #define PACK_STRUCT_STRUCT 51 | #define PACK_STRUCT_END 52 | #define PACK_STRUCT_FIELD(x) x 53 | 54 | #define LWIP_PLATFORM_DIAG(x) 55 | #define LWIP_PLATFORM_ASSERT(x) 56 | 57 | #endif /* __CC_H__ */ 58 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/peripherals/pmc/pmc.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * ATMEL Microcontroller Software Support 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2008, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | 30 | #ifndef PMC_H 31 | #define PMC_H 32 | 33 | //------------------------------------------------------------------------------ 34 | // Global functions 35 | //------------------------------------------------------------------------------ 36 | 37 | #if defined(at91sam7l64) || defined(at91sam7l128) 38 | extern void PMC_SetFastWakeUpInputs(unsigned int inputs); 39 | extern void PMC_DisableMainOscillator(void); 40 | extern 41 | #ifdef __ICCARM__ 42 | __ramfunc 43 | #endif 44 | void PMC_DisableMainOscillatorForWaitMode(void); 45 | #endif 46 | 47 | extern void PMC_DisableProcessorClock(void); 48 | 49 | extern void PMC_EnablePeripheral(unsigned int id); 50 | 51 | extern void PMC_DisablePeripheral(unsigned int id); 52 | #endif //#ifndef PMC_H 53 | 54 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/netif/ppp/vjbsdhdr.h: -------------------------------------------------------------------------------- 1 | #ifndef VJBSDHDR_H 2 | #define VJBSDHDR_H 3 | 4 | #include "lwip/tcp.h" 5 | 6 | 7 | /* 8 | * Structure of an internet header, naked of options. 9 | * 10 | * We declare ip_len and ip_off to be short, rather than u_short 11 | * pragmatically since otherwise unsigned comparisons can result 12 | * against negative integers quite easily, and fail in subtle ways. 13 | */ 14 | PACK_STRUCT_BEGIN 15 | struct ip 16 | { 17 | #if defined(NO_CHAR_BITFIELDS) 18 | u_char ip_hl_v; /* bug in GCC for mips means the bitfield stuff will sometimes break - so we use a char for both and get round it with macro's instead... */ 19 | #else 20 | #if BYTE_ORDER == LITTLE_ENDIAN 21 | unsigned ip_hl:4, /* header length */ 22 | ip_v:4; /* version */ 23 | #elif BYTE_ORDER == BIG_ENDIAN 24 | unsigned ip_v:4, /* version */ 25 | ip_hl:4; /* header length */ 26 | #else 27 | COMPLAIN - NO BYTE ORDER SELECTED! 28 | #endif 29 | #endif 30 | u_char ip_tos; /* type of service */ 31 | u_short ip_len; /* total length */ 32 | u_short ip_id; /* identification */ 33 | u_short ip_off; /* fragment offset field */ 34 | #define IP_DF 0x4000 /* dont fragment flag */ 35 | #define IP_MF 0x2000 /* more fragments flag */ 36 | #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ 37 | u_char ip_ttl; /* time to live */ 38 | u_char ip_p; /* protocol */ 39 | u_short ip_sum; /* checksum */ 40 | struct in_addr ip_src,ip_dst; /* source and dest address */ 41 | }; 42 | PACK_STRUCT_END 43 | 44 | typedef u32_t tcp_seq; 45 | 46 | /* 47 | * TCP header. 48 | * Per RFC 793, September, 1981. 49 | */ 50 | PACK_STRUCT_BEGIN 51 | struct tcphdr 52 | { 53 | u_short th_sport; /* source port */ 54 | u_short th_dport; /* destination port */ 55 | tcp_seq th_seq; /* sequence number */ 56 | tcp_seq th_ack; /* acknowledgement number */ 57 | #if defined(NO_CHAR_BITFIELDS) 58 | u_char th_x2_off; 59 | #else 60 | #if BYTE_ORDER == LITTLE_ENDIAN 61 | unsigned th_x2:4, /* (unused) */ 62 | th_off:4; /* data offset */ 63 | #endif 64 | #if BYTE_ORDER == BIG_ENDIAN 65 | unsigned th_off:4, /* data offset */ 66 | th_x2:4; /* (unused) */ 67 | #endif 68 | #endif 69 | u_char th_flags; 70 | u_short th_win; /* window */ 71 | u_short th_sum; /* checksum */ 72 | u_short th_urp; /* urgent pointer */ 73 | }; 74 | PACK_STRUCT_END 75 | 76 | #endif /* VJBSDHDR_H */ 77 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/include/lwip/sio.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | */ 29 | 30 | /* 31 | * This is the interface to the platform specific serial IO module 32 | * It needs to be implemented by those platforms which need SLIP or PPP 33 | */ 34 | 35 | #include "arch/cc.h" 36 | 37 | #ifndef __sio_fd_t_defined 38 | typedef void * sio_fd_t; 39 | #endif 40 | 41 | #ifndef sio_open 42 | sio_fd_t sio_open(u8_t); 43 | #endif 44 | 45 | #ifndef sio_send 46 | void sio_send(u8_t, sio_fd_t); 47 | #endif 48 | 49 | #ifndef sio_recv 50 | u8_t sio_recv(sio_fd_t); 51 | #endif 52 | 53 | #ifndef sio_read 54 | u32_t sio_read(sio_fd_t, u8_t *, u32_t); 55 | #endif 56 | 57 | #ifndef sio_write 58 | u32_t sio_write(sio_fd_t, u8_t *, u32_t); 59 | #endif 60 | 61 | #ifndef sio_read_abort 62 | void sio_read_abort(sio_fd_t); 63 | #endif 64 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/src/core/sys.c: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * lwIP Operating System abstraction 4 | * 5 | */ 6 | 7 | /* 8 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 9 | * All rights reserved. 10 | * 11 | * Redistribution and use in source and binary forms, with or without modification, 12 | * are permitted provided that the following conditions are met: 13 | * 14 | * 1. Redistributions of source code must retain the above copyright notice, 15 | * this list of conditions and the following disclaimer. 16 | * 2. Redistributions in binary form must reproduce the above copyright notice, 17 | * this list of conditions and the following disclaimer in the documentation 18 | * and/or other materials provided with the distribution. 19 | * 3. The name of the author may not be used to endorse or promote products 20 | * derived from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 23 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 24 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 25 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 27 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 30 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 31 | * OF SUCH DAMAGE. 32 | * 33 | * This file is part of the lwIP TCP/IP stack. 34 | * 35 | * Author: Adam Dunkels 36 | * 37 | */ 38 | 39 | #include "lwip/opt.h" 40 | 41 | #include "lwip/sys.h" 42 | 43 | /* Most of the functions defined in sys.h must be implemented in the 44 | * architecture-dependent file sys_arch.c */ 45 | 46 | #if !NO_SYS 47 | 48 | /** 49 | * Sleep for some ms. Timeouts are NOT processed while sleeping. 50 | * 51 | * @param ms number of milliseconds to sleep 52 | */ 53 | void 54 | sys_msleep(u32_t ms) 55 | { 56 | if (ms > 0) { 57 | sys_sem_t delaysem; 58 | err_t err = sys_sem_new(&delaysem, 0); 59 | if (err == ERR_OK) { 60 | sys_arch_sem_wait(&delaysem, ms); 61 | sys_sem_free(&delaysem); 62 | } 63 | } 64 | } 65 | 66 | #endif /* !NO_SYS */ 67 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/src/include/ipv4/lwip/inet_chksum.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LWIP_INET_CHKSUM_H__ 33 | #define __LWIP_INET_CHKSUM_H__ 34 | 35 | #include "lwip/opt.h" 36 | 37 | #include "lwip/pbuf.h" 38 | #include "lwip/ip_addr.h" 39 | 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | u16_t inet_chksum(void *dataptr, u16_t len); 45 | u16_t inet_chksum_pbuf(struct pbuf *p); 46 | u16_t inet_chksum_pseudo(struct pbuf *p, 47 | struct ip_addr *src, struct ip_addr *dest, 48 | u8_t proto, u16_t proto_len); 49 | #if LWIP_UDPLITE 50 | u16_t inet_chksum_pseudo_partial(struct pbuf *p, 51 | struct ip_addr *src, struct ip_addr *dest, 52 | u8_t proto, u16_t proto_len, u16_t chksum_len); 53 | #endif 54 | 55 | #ifdef __cplusplus 56 | } 57 | #endif 58 | 59 | #endif /* __LWIP_INET_H__ */ 60 | 61 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/src/include/ipv4/lwip/inet_chksum.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LWIP_INET_CHKSUM_H__ 33 | #define __LWIP_INET_CHKSUM_H__ 34 | 35 | #include "lwip/opt.h" 36 | 37 | #include "lwip/pbuf.h" 38 | #include "lwip/ip_addr.h" 39 | 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | u16_t inet_chksum(void *dataptr, u16_t len); 45 | u16_t inet_chksum_pbuf(struct pbuf *p); 46 | u16_t inet_chksum_pseudo(struct pbuf *p, 47 | struct ip_addr *src, struct ip_addr *dest, 48 | u8_t proto, u16_t proto_len); 49 | u16_t inet_chksum_pseudo_partial(struct pbuf *p, 50 | struct ip_addr *src, struct ip_addr *dest, 51 | u8_t proto, u16_t proto_len, u16_t chksum_len); 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif 56 | 57 | #endif /* __LWIP_INET_H__ */ 58 | 59 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/boards/at91sam9xe-ek/board_memories.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * ATMEL Microcontroller Software Support 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2008, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | 30 | #ifndef BOARD_MEMORIES_H 31 | #define BOARD_MEMORIES_H 32 | 33 | //------------------------------------------------------------------------------ 34 | // Global functions 35 | //------------------------------------------------------------------------------ 36 | 37 | extern void BOARD_RemapRom(void); 38 | 39 | extern void BOARD_RemapRam(void); 40 | 41 | extern void BOARD_ConfigureSdram(void); 42 | 43 | extern void BOARD_ConfigureSdram48MHz(void); 44 | 45 | extern void BOARD_ConfigureNandFlash(unsigned char busWidth); 46 | 47 | extern void BOARD_ConfigureNandFlash48MHz(unsigned char busWidth); 48 | 49 | extern void BOARD_ConfigureNorFlash48MHz(unsigned char busWidth); 50 | 51 | extern void BOARD_ConfigureFlash48MHz(void); 52 | 53 | #endif //#ifndef BOARD_MEMORIES_H 54 | 55 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/FreeTCPIP/apps/httpd/httpd-fs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | * Author: Adam Dunkels 32 | * 33 | * $Id: httpd-fs.h,v 1.1 2006/06/07 09:13:08 adam Exp $ 34 | */ 35 | #ifndef __HTTPD_FS_H__ 36 | #define __HTTPD_FS_H__ 37 | 38 | #define HTTPD_FS_STATISTICS 1 39 | 40 | struct httpd_fs_file 41 | { 42 | char *data; 43 | int len; 44 | }; 45 | 46 | /* file must be allocated by caller and will be filled in 47 | by the function. */ 48 | int httpd_fs_open( const char *name, struct httpd_fs_file *file ); 49 | 50 | #ifdef HTTPD_FS_STATISTICS 51 | #if HTTPD_FS_STATISTICS == 1 52 | u16_t httpd_fs_count( char *name ); 53 | #endif /* HTTPD_FS_STATISTICS */ 54 | #endif /* HTTPD_FS_STATISTICS */ 55 | 56 | void httpd_fs_init( void ); 57 | #endif /* __HTTPD_FS_H__ */ 58 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/uIP/uip-1.0/apps/webserver/httpd-fs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | * Author: Adam Dunkels 32 | * 33 | * $Id: httpd-fs.h,v 1.1 2006/06/07 09:13:08 adam Exp $ 34 | */ 35 | #ifndef __HTTPD_FS_H__ 36 | #define __HTTPD_FS_H__ 37 | 38 | #define HTTPD_FS_STATISTICS 1 39 | 40 | struct httpd_fs_file { 41 | char *data; 42 | int len; 43 | }; 44 | 45 | /* file must be allocated by caller and will be filled in 46 | by the function. */ 47 | int httpd_fs_open(const char *name, struct httpd_fs_file *file); 48 | 49 | #ifdef HTTPD_FS_STATISTICS 50 | #if HTTPD_FS_STATISTICS == 1 51 | u16_t httpd_fs_count(char *name); 52 | #endif /* HTTPD_FS_STATISTICS */ 53 | #endif /* HTTPD_FS_STATISTICS */ 54 | 55 | void httpd_fs_init(void); 56 | 57 | #endif /* __HTTPD_FS_H__ */ 58 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/boards/at91sam9xe-ek/at91sam9xe128/sdram.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ 4 | /*-Memory Regions-*/ 5 | define symbol __ICFEDIT_region_SDRAM_start__ = 0x20000000; 6 | define symbol __ICFEDIT_region_SDRAM_end__ = 0x21FFFFFF; 7 | define symbol __ICFEDIT_region_RAM_start__ = 0x300000; 8 | define symbol __ICFEDIT_region_RAM_end__ = 0x303FFF; 9 | /*-Sizes-*/ 10 | define symbol __ICFEDIT_size_startup__ = 0x100; 11 | define symbol __ICFEDIT_size_vectors__ = 0x100; 12 | define symbol __ICFEDIT_size_cstack__ = 0x1000; 13 | define symbol __ICFEDIT_size_svcstack__ = 0x60; 14 | define symbol __ICFEDIT_size_irqstack__ = 0x60; 15 | define symbol __ICFEDIT_size_heap__ = 0x0; 16 | /*-Exports-*/ 17 | export symbol __ICFEDIT_region_SDRAM_start__; 18 | export symbol __ICFEDIT_region_SDRAM_end__; 19 | export symbol __ICFEDIT_region_RAM_start__; 20 | export symbol __ICFEDIT_region_RAM_end__; 21 | export symbol __ICFEDIT_size_startup__; 22 | export symbol __ICFEDIT_size_vectors__; 23 | export symbol __ICFEDIT_size_cstack__; 24 | export symbol __ICFEDIT_size_svcstack__; 25 | export symbol __ICFEDIT_size_irqstack__; 26 | export symbol __ICFEDIT_size_heap__; 27 | /**** End of ICF editor section. ###ICF###*/ 28 | 29 | define memory mem with size = 4G; 30 | define region STA_region = mem:[from __ICFEDIT_region_SDRAM_start__ size __ICFEDIT_size_startup__]; 31 | define region SDRAM_region = mem:[from __ICFEDIT_region_SDRAM_start__+__ICFEDIT_size_startup__ to __ICFEDIT_region_SDRAM_end__]; 32 | define region VEC_region = mem:[from __ICFEDIT_region_RAM_start__ size __ICFEDIT_size_vectors__]; 33 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__+__ICFEDIT_size_vectors__ to __ICFEDIT_region_RAM_end__]; 34 | 35 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 36 | define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; 37 | define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; 38 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 39 | 40 | initialize by copy { section .vectors }; 41 | do not initialize { section .noinit }; 42 | 43 | place in STA_region { section .cstartup }; 44 | place in VEC_region { section .vectors }; 45 | place in SDRAM_region { readonly, readwrite, block IRQ_STACK, block SVC_STACK, block CSTACK, block HEAP }; 46 | 47 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/boards/at91sam9xe-ek/at91sam9xe256/sdram.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ 4 | /*-Memory Regions-*/ 5 | define symbol __ICFEDIT_region_SDRAM_start__ = 0x20000000; 6 | define symbol __ICFEDIT_region_SDRAM_end__ = 0x21FFFFFF; 7 | define symbol __ICFEDIT_region_RAM_start__ = 0x300000; 8 | define symbol __ICFEDIT_region_RAM_end__ = 0x307FFF; 9 | /*-Sizes-*/ 10 | define symbol __ICFEDIT_size_startup__ = 0x100; 11 | define symbol __ICFEDIT_size_vectors__ = 0x100; 12 | define symbol __ICFEDIT_size_cstack__ = 0x1000; 13 | define symbol __ICFEDIT_size_svcstack__ = 0x60; 14 | define symbol __ICFEDIT_size_irqstack__ = 0x60; 15 | define symbol __ICFEDIT_size_heap__ = 0x0; 16 | /*-Exports-*/ 17 | export symbol __ICFEDIT_region_SDRAM_start__; 18 | export symbol __ICFEDIT_region_SDRAM_end__; 19 | export symbol __ICFEDIT_region_RAM_start__; 20 | export symbol __ICFEDIT_region_RAM_end__; 21 | export symbol __ICFEDIT_size_startup__; 22 | export symbol __ICFEDIT_size_vectors__; 23 | export symbol __ICFEDIT_size_cstack__; 24 | export symbol __ICFEDIT_size_svcstack__; 25 | export symbol __ICFEDIT_size_irqstack__; 26 | export symbol __ICFEDIT_size_heap__; 27 | /**** End of ICF editor section. ###ICF###*/ 28 | 29 | define memory mem with size = 4G; 30 | define region STA_region = mem:[from __ICFEDIT_region_SDRAM_start__ size __ICFEDIT_size_startup__]; 31 | define region SDRAM_region = mem:[from __ICFEDIT_region_SDRAM_start__+__ICFEDIT_size_startup__ to __ICFEDIT_region_SDRAM_end__]; 32 | define region VEC_region = mem:[from __ICFEDIT_region_RAM_start__ size __ICFEDIT_size_vectors__]; 33 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__+__ICFEDIT_size_vectors__ to __ICFEDIT_region_RAM_end__]; 34 | 35 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 36 | define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; 37 | define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; 38 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 39 | 40 | initialize by copy { section .vectors }; 41 | do not initialize { section .noinit }; 42 | 43 | place in STA_region { section .cstartup }; 44 | place in VEC_region { section .vectors }; 45 | place in SDRAM_region { readonly, readwrite, block IRQ_STACK, block SVC_STACK, block CSTACK, block HEAP }; 46 | 47 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/boards/at91sam9xe-ek/at91sam9xe512/sdram.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ 4 | /*-Memory Regions-*/ 5 | define symbol __ICFEDIT_region_SDRAM_start__ = 0x20000000; 6 | define symbol __ICFEDIT_region_SDRAM_end__ = 0x21FFFFFF; 7 | define symbol __ICFEDIT_region_RAM_start__ = 0x300000; 8 | define symbol __ICFEDIT_region_RAM_end__ = 0x307FFF; 9 | /*-Sizes-*/ 10 | define symbol __ICFEDIT_size_startup__ = 0x100; 11 | define symbol __ICFEDIT_size_vectors__ = 0x100; 12 | define symbol __ICFEDIT_size_cstack__ = 0x1000; 13 | define symbol __ICFEDIT_size_svcstack__ = 0x60; 14 | define symbol __ICFEDIT_size_irqstack__ = 0x60; 15 | define symbol __ICFEDIT_size_heap__ = 0x0; 16 | /*-Exports-*/ 17 | export symbol __ICFEDIT_region_SDRAM_start__; 18 | export symbol __ICFEDIT_region_SDRAM_end__; 19 | export symbol __ICFEDIT_region_RAM_start__; 20 | export symbol __ICFEDIT_region_RAM_end__; 21 | export symbol __ICFEDIT_size_startup__; 22 | export symbol __ICFEDIT_size_vectors__; 23 | export symbol __ICFEDIT_size_cstack__; 24 | export symbol __ICFEDIT_size_svcstack__; 25 | export symbol __ICFEDIT_size_irqstack__; 26 | export symbol __ICFEDIT_size_heap__; 27 | /**** End of ICF editor section. ###ICF###*/ 28 | 29 | define memory mem with size = 4G; 30 | define region STA_region = mem:[from __ICFEDIT_region_SDRAM_start__ size __ICFEDIT_size_startup__]; 31 | define region SDRAM_region = mem:[from __ICFEDIT_region_SDRAM_start__+__ICFEDIT_size_startup__ to __ICFEDIT_region_SDRAM_end__]; 32 | define region VEC_region = mem:[from __ICFEDIT_region_RAM_start__ size __ICFEDIT_size_vectors__]; 33 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__+__ICFEDIT_size_vectors__ to __ICFEDIT_region_RAM_end__]; 34 | 35 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 36 | define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; 37 | define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; 38 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 39 | 40 | initialize by copy { section .vectors }; 41 | do not initialize { section .noinit }; 42 | 43 | place in STA_region { section .cstartup }; 44 | place in VEC_region { section .vectors }; 45 | place in SDRAM_region { readonly, readwrite, block IRQ_STACK, block SVC_STACK, block CSTACK, block HEAP }; 46 | 47 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/boards/at91sam9xe-ek/at91sam9xe128/flash.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ 4 | /*-Memory Regions-*/ 5 | define symbol __ICFEDIT_region_ROM_start__ = 0x200000; 6 | define symbol __ICFEDIT_region_ROM_end__ = 0x21FFFF; 7 | define symbol __ICFEDIT_region_RAM_start__ = 0x300000; 8 | define symbol __ICFEDIT_region_RAM_end__ = 0x303FFF; 9 | /*-Sizes-*/ 10 | define symbol __ICFEDIT_size_startup__ = 0x100; 11 | define symbol __ICFEDIT_size_vectors__ = 0x100; 12 | define symbol __ICFEDIT_size_cstack__ = 0x1000; 13 | define symbol __ICFEDIT_size_svcstack__ = 0x60; 14 | define symbol __ICFEDIT_size_irqstack__ = 0x60; 15 | define symbol __ICFEDIT_size_heap__ = 0x0; 16 | /*-Exports-*/ 17 | export symbol __ICFEDIT_region_ROM_start__; 18 | export symbol __ICFEDIT_region_ROM_end__; 19 | export symbol __ICFEDIT_region_RAM_start__; 20 | export symbol __ICFEDIT_region_RAM_end__; 21 | export symbol __ICFEDIT_size_startup__; 22 | export symbol __ICFEDIT_size_vectors__; 23 | export symbol __ICFEDIT_size_cstack__; 24 | export symbol __ICFEDIT_size_svcstack__; 25 | export symbol __ICFEDIT_size_irqstack__; 26 | export symbol __ICFEDIT_size_heap__; 27 | /**** End of ICF editor section. ###ICF###*/ 28 | 29 | define memory mem with size = 4G; 30 | define region STA_region = mem:[from __ICFEDIT_region_ROM_start__ size __ICFEDIT_size_startup__]; 31 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__+__ICFEDIT_size_startup__ to __ICFEDIT_region_ROM_end__]; 32 | define region VEC_region = mem:[from __ICFEDIT_region_RAM_start__ size __ICFEDIT_size_vectors__]; 33 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__+__ICFEDIT_size_vectors__ to __ICFEDIT_region_RAM_end__]; 34 | 35 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 36 | define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; 37 | define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; 38 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 39 | 40 | initialize by copy { readwrite }; 41 | initialize by copy { section .vectors }; 42 | do not initialize { section .noinit }; 43 | 44 | place in STA_region { section .cstartup }; 45 | place in ROM_region { readonly }; 46 | place in VEC_region { section .vectors }; 47 | place in RAM_region { readwrite, block IRQ_STACK, block SVC_STACK, block CSTACK, block HEAP }; 48 | 49 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/boards/at91sam9xe-ek/at91sam9xe256/flash.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ 4 | /*-Memory Regions-*/ 5 | define symbol __ICFEDIT_region_ROM_start__ = 0x200000; 6 | define symbol __ICFEDIT_region_ROM_end__ = 0x23FFFF; 7 | define symbol __ICFEDIT_region_RAM_start__ = 0x300000; 8 | define symbol __ICFEDIT_region_RAM_end__ = 0x307FFF; 9 | /*-Sizes-*/ 10 | define symbol __ICFEDIT_size_startup__ = 0x100; 11 | define symbol __ICFEDIT_size_vectors__ = 0x100; 12 | define symbol __ICFEDIT_size_cstack__ = 0x1000; 13 | define symbol __ICFEDIT_size_svcstack__ = 0x60; 14 | define symbol __ICFEDIT_size_irqstack__ = 0x60; 15 | define symbol __ICFEDIT_size_heap__ = 0x0; 16 | /*-Exports-*/ 17 | export symbol __ICFEDIT_region_ROM_start__; 18 | export symbol __ICFEDIT_region_ROM_end__; 19 | export symbol __ICFEDIT_region_RAM_start__; 20 | export symbol __ICFEDIT_region_RAM_end__; 21 | export symbol __ICFEDIT_size_startup__; 22 | export symbol __ICFEDIT_size_vectors__; 23 | export symbol __ICFEDIT_size_cstack__; 24 | export symbol __ICFEDIT_size_svcstack__; 25 | export symbol __ICFEDIT_size_irqstack__; 26 | export symbol __ICFEDIT_size_heap__; 27 | /**** End of ICF editor section. ###ICF###*/ 28 | 29 | define memory mem with size = 4G; 30 | define region STA_region = mem:[from __ICFEDIT_region_ROM_start__ size __ICFEDIT_size_startup__]; 31 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__+__ICFEDIT_size_startup__ to __ICFEDIT_region_ROM_end__]; 32 | define region VEC_region = mem:[from __ICFEDIT_region_RAM_start__ size __ICFEDIT_size_vectors__]; 33 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__+__ICFEDIT_size_vectors__ to __ICFEDIT_region_RAM_end__]; 34 | 35 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 36 | define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; 37 | define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; 38 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 39 | 40 | initialize by copy { readwrite }; 41 | initialize by copy { section .vectors }; 42 | do not initialize { section .noinit }; 43 | 44 | place in STA_region { section .cstartup }; 45 | place in ROM_region { readonly }; 46 | place in VEC_region { section .vectors }; 47 | place in RAM_region { readwrite, block IRQ_STACK, block SVC_STACK, block CSTACK, block HEAP }; 48 | 49 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/boards/at91sam9xe-ek/at91sam9xe512/flash.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ 4 | /*-Memory Regions-*/ 5 | define symbol __ICFEDIT_region_ROM_start__ = 0x200000; 6 | define symbol __ICFEDIT_region_ROM_end__ = 0x27FFFF; 7 | define symbol __ICFEDIT_region_RAM_start__ = 0x300000; 8 | define symbol __ICFEDIT_region_RAM_end__ = 0x307FFF; 9 | /*-Sizes-*/ 10 | define symbol __ICFEDIT_size_startup__ = 0x100; 11 | define symbol __ICFEDIT_size_vectors__ = 0x100; 12 | define symbol __ICFEDIT_size_cstack__ = 0x1000; 13 | define symbol __ICFEDIT_size_svcstack__ = 0x60; 14 | define symbol __ICFEDIT_size_irqstack__ = 0x60; 15 | define symbol __ICFEDIT_size_heap__ = 0x0; 16 | /*-Exports-*/ 17 | export symbol __ICFEDIT_region_ROM_start__; 18 | export symbol __ICFEDIT_region_ROM_end__; 19 | export symbol __ICFEDIT_region_RAM_start__; 20 | export symbol __ICFEDIT_region_RAM_end__; 21 | export symbol __ICFEDIT_size_startup__; 22 | export symbol __ICFEDIT_size_vectors__; 23 | export symbol __ICFEDIT_size_cstack__; 24 | export symbol __ICFEDIT_size_svcstack__; 25 | export symbol __ICFEDIT_size_irqstack__; 26 | export symbol __ICFEDIT_size_heap__; 27 | /**** End of ICF editor section. ###ICF###*/ 28 | 29 | define memory mem with size = 4G; 30 | define region STA_region = mem:[from __ICFEDIT_region_ROM_start__ size __ICFEDIT_size_startup__]; 31 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__+__ICFEDIT_size_startup__ to __ICFEDIT_region_ROM_end__]; 32 | define region VEC_region = mem:[from __ICFEDIT_region_RAM_start__ size __ICFEDIT_size_vectors__]; 33 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__+__ICFEDIT_size_vectors__ to __ICFEDIT_region_RAM_end__]; 34 | 35 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 36 | define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; 37 | define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; 38 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 39 | 40 | initialize by copy { readwrite }; 41 | initialize by copy { section .vectors }; 42 | do not initialize { section .noinit }; 43 | 44 | place in STA_region { section .cstartup }; 45 | place in ROM_region { readonly }; 46 | place in VEC_region { section .vectors }; 47 | place in RAM_region { readwrite, block IRQ_STACK, block SVC_STACK, block CSTACK, block HEAP }; 48 | 49 | -------------------------------------------------------------------------------- /Demo/Common/drivers/LuminaryMicro/cpu.h: -------------------------------------------------------------------------------- 1 | //***************************************************************************** 2 | // 3 | // cpu.h - Prototypes for the CPU instruction wrapper functions. 4 | // 5 | // Copyright (c) 2006-2008 Luminary Micro, Inc. All rights reserved. 6 | // 7 | // Software License Agreement 8 | // 9 | // Luminary Micro, Inc. (LMI) is supplying this software for use solely and 10 | // exclusively on LMI's microcontroller products. 11 | // 12 | // The software is owned by LMI and/or its suppliers, and is protected under 13 | // applicable copyright laws. All rights are reserved. You may not combine 14 | // this software with "viral" open-source software in order to form a larger 15 | // program. Any use in violation of the foregoing restrictions may subject 16 | // the user to criminal sanctions under applicable laws, as well as to civil 17 | // liability for the breach of the terms and conditions of this license. 18 | // 19 | // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED 20 | // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF 21 | // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. 22 | // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR 23 | // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. 24 | // 25 | // This is part of revision 2523 of the Stellaris Peripheral Driver Library. 26 | // 27 | //***************************************************************************** 28 | 29 | #ifndef __CPU_H__ 30 | #define __CPU_H__ 31 | 32 | //***************************************************************************** 33 | // 34 | // If building with a C++ compiler, make all of the definitions in this header 35 | // have a C binding. 36 | // 37 | //***************************************************************************** 38 | #ifdef __cplusplus 39 | extern "C" 40 | { 41 | #endif 42 | 43 | //***************************************************************************** 44 | // 45 | // Prototypes. 46 | // 47 | //***************************************************************************** 48 | extern unsigned long CPUcpsid(void); 49 | extern unsigned long CPUcpsie(void); 50 | extern void CPUwfi(void); 51 | 52 | //***************************************************************************** 53 | // 54 | // Mark the end of the C bindings section for C++ compilers. 55 | // 56 | //***************************************************************************** 57 | #ifdef __cplusplus 58 | } 59 | #endif 60 | 61 | #endif // __CPU_H__ 62 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_130/src/include/lwip/sio.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | */ 29 | 30 | /* 31 | * This is the interface to the platform specific serial IO module 32 | * It needs to be implemented by those platforms which need SLIP or PPP 33 | */ 34 | 35 | #include "lwip/arch.h" 36 | 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | #ifndef __sio_fd_t_defined 42 | typedef void * sio_fd_t; 43 | #endif 44 | 45 | #ifndef sio_open 46 | sio_fd_t sio_open(u8_t); 47 | #endif 48 | 49 | #ifndef sio_send 50 | void sio_send(u8_t, sio_fd_t); 51 | #endif 52 | 53 | #ifndef sio_recv 54 | u8_t sio_recv(sio_fd_t); 55 | #endif 56 | 57 | #ifndef sio_read 58 | u32_t sio_read(sio_fd_t, u8_t *, u32_t); 59 | #endif 60 | 61 | #ifndef sio_write 62 | u32_t sio_write(sio_fd_t, u8_t *, u32_t); 63 | #endif 64 | 65 | #ifndef sio_read_abort 66 | void sio_read_abort(sio_fd_t); 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/win32/WinPCap/pcap-bpf.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 3 | * The Regents of the University of California. All rights reserved. 4 | * 5 | * This code is derived from the Stanford/CMU enet packet filter, 6 | * (net/enet.c) distributed as part of 4.3BSD, and code contributed 7 | * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence 8 | * Berkeley Laboratory. 9 | * 10 | * Redistribution and use in source and binary forms, with or without 11 | * modification, are permitted provided that the following conditions 12 | * are met: 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 3. All advertising materials mentioning features or use of this software 19 | * must display the following acknowledgement: 20 | * This product includes software developed by the University of 21 | * California, Berkeley and its contributors. 22 | * 4. Neither the name of the University nor the names of its contributors 23 | * may be used to endorse or promote products derived from this software 24 | * without specific prior written permission. 25 | * 26 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 27 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 28 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 30 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 | * SUCH DAMAGE. 37 | * 38 | * @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.50 2007/04/01 21:43:55 guy Exp $ (LBL) 39 | */ 40 | 41 | /* 42 | * For backwards compatibility. 43 | * 44 | * Note to OS vendors: do NOT get rid of this file! Some applications 45 | * might expect to be able to include . 46 | */ 47 | #include 48 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/peripherals/aes/aes.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * ATMEL Microcontroller Software Support 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2008, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | 30 | #ifndef AES_H 31 | #define AES_H 32 | 33 | //------------------------------------------------------------------------------ 34 | // Global functions 35 | //------------------------------------------------------------------------------ 36 | 37 | extern void AES_Configure( 38 | unsigned char cipher, 39 | unsigned int smode, 40 | unsigned int opmode); 41 | 42 | extern void AES_SetKey(const unsigned int *pKey); 43 | 44 | extern void AES_SetVector(const unsigned int *pVector); 45 | 46 | extern void AES_SetInputData(const unsigned int *pData); 47 | 48 | extern void AES_GetOutputData(unsigned int *pData); 49 | 50 | extern void AES_SetInputBuffer(const unsigned int *pInput); 51 | 52 | extern void AES_SetOutputBuffer(unsigned int *pOutput); 53 | 54 | extern void AES_Start(void); 55 | 56 | extern unsigned int AES_GetStatus(void); 57 | 58 | #endif //#ifndef AES_H 59 | 60 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/src/netif/ppp/vjbsdhdr.h: -------------------------------------------------------------------------------- 1 | #ifndef VJBSDHDR_H 2 | #define VJBSDHDR_H 3 | 4 | #include "lwip/tcp.h" 5 | 6 | /* 7 | * Structure of an internet header, naked of options. 8 | * 9 | * We declare ip_len and ip_off to be short, rather than u_short 10 | * pragmatically since otherwise unsigned comparisons can result 11 | * against negative integers quite easily, and fail in subtle ways. 12 | */ 13 | PACK_STRUCT_BEGIN 14 | struct ip 15 | { 16 | #if defined(NO_CHAR_BITFIELDS) 17 | u_char ip_hl_v; /* bug in GCC for mips means the bitfield stuff will sometimes break - so we use a char for both and get round it with macro's instead... */ 18 | #else 19 | #if BYTE_ORDER == LITTLE_ENDIAN 20 | unsigned ip_hl:4, /* header length */ 21 | ip_v :4; /* version */ 22 | #elif BYTE_ORDER == BIG_ENDIAN 23 | unsigned ip_v :4, /* version */ 24 | ip_hl:4; /* header length */ 25 | #else 26 | COMPLAIN - NO BYTE ORDER SELECTED! 27 | #endif 28 | #endif 29 | u_char ip_tos; /* type of service */ 30 | u_short ip_len; /* total length */ 31 | u_short ip_id; /* identification */ 32 | u_short ip_off; /* fragment offset field */ 33 | #define IP_DF 0x4000 /* dont fragment flag */ 34 | #define IP_MF 0x2000 /* more fragments flag */ 35 | #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ 36 | u_char ip_ttl; /* time to live */ 37 | u_char ip_p; /* protocol */ 38 | u_short ip_sum; /* checksum */ 39 | struct in_addr ip_src,ip_dst; /* source and dest address */ 40 | }; 41 | PACK_STRUCT_END 42 | 43 | typedef u32_t tcp_seq; 44 | 45 | /* 46 | * TCP header. 47 | * Per RFC 793, September, 1981. 48 | */ 49 | PACK_STRUCT_BEGIN 50 | struct tcphdr 51 | { 52 | u_short th_sport; /* source port */ 53 | u_short th_dport; /* destination port */ 54 | tcp_seq th_seq; /* sequence number */ 55 | tcp_seq th_ack; /* acknowledgement number */ 56 | #if defined(NO_CHAR_BITFIELDS) 57 | u_char th_x2_off; 58 | #else 59 | #if BYTE_ORDER == LITTLE_ENDIAN 60 | unsigned th_x2 :4, /* (unused) */ 61 | th_off:4; /* data offset */ 62 | #endif 63 | #if BYTE_ORDER == BIG_ENDIAN 64 | unsigned th_off:4, /* data offset */ 65 | th_x2 :4; /* (unused) */ 66 | #endif 67 | #endif 68 | u_char th_flags; 69 | u_short th_win; /* window */ 70 | u_short th_sum; /* checksum */ 71 | u_short th_urp; /* urgent pointer */ 72 | }; 73 | PACK_STRUCT_END 74 | 75 | #endif /* VJBSDHDR_H */ 76 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/src/netif/loopif.c: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Loop Interface 4 | * 5 | */ 6 | 7 | /* 8 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 9 | * All rights reserved. 10 | * 11 | * Redistribution and use in source and binary forms, with or without modification, 12 | * are permitted provided that the following conditions are met: 13 | * 14 | * 1. Redistributions of source code must retain the above copyright notice, 15 | * this list of conditions and the following disclaimer. 16 | * 2. Redistributions in binary form must reproduce the above copyright notice, 17 | * this list of conditions and the following disclaimer in the documentation 18 | * and/or other materials provided with the distribution. 19 | * 3. The name of the author may not be used to endorse or promote products 20 | * derived from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 23 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 24 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 25 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 27 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 30 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 31 | * OF SUCH DAMAGE. 32 | * 33 | * This file is part of the lwIP TCP/IP stack. 34 | * 35 | * Author: Adam Dunkels 36 | * 37 | */ 38 | #include "lwip/opt.h" 39 | 40 | #if LWIP_HAVE_LOOPIF 41 | 42 | #include "netif/loopif.h" 43 | #include "lwip/snmp.h" 44 | 45 | /** 46 | * Initialize a lwip network interface structure for a loopback interface 47 | * 48 | * @param netif the lwip network interface structure for this loopif 49 | * @return ERR_OK if the loopif is initialized 50 | * ERR_MEM if private data couldn't be allocated 51 | */ 52 | err_t 53 | loopif_init(struct netif *netif) 54 | { 55 | /* initialize the snmp variables and counters inside the struct netif 56 | * ifSpeed: no assumption can be made! 57 | */ 58 | NETIF_INIT_SNMP(netif, snmp_ifType_softwareLoopback, 0); 59 | 60 | netif->name[0] = 'l'; 61 | netif->name[1] = 'o'; 62 | netif->output = netif_loop_output; 63 | return ERR_OK; 64 | } 65 | 66 | #endif /* LWIP_HAVE_LOOPIF */ 67 | -------------------------------------------------------------------------------- /Demo/Common/drivers/LuminaryMicro/rit128x96x4.h: -------------------------------------------------------------------------------- 1 | //***************************************************************************** 2 | // 3 | // rit128x96x4.h - Prototypes for the driver for the RITEK 128x96x4 graphical 4 | // OLED display. 5 | // 6 | // Copyright (c) 2007 Luminary Micro, Inc. All rights reserved. 7 | // 8 | // Software License Agreement 9 | // 10 | // Luminary Micro, Inc. (LMI) is supplying this software for use solely and 11 | // exclusively on LMI's microcontroller products. 12 | // 13 | // The software is owned by LMI and/or its suppliers, and is protected under 14 | // applicable copyright laws. All rights are reserved. Any use in violation 15 | // of the foregoing restrictions may subject the user to criminal sanctions 16 | // under applicable laws, as well as to civil liability for the breach of the 17 | // terms and conditions of this license. 18 | // 19 | // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED 20 | // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF 21 | // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. 22 | // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR 23 | // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. 24 | // 25 | // This is part of revision 1582 of the Stellaris Peripheral Driver Library. 26 | // 27 | //***************************************************************************** 28 | 29 | #ifndef __RIT128X96X4_H__ 30 | #define __RIT128X96X4_H__ 31 | 32 | //***************************************************************************** 33 | // 34 | // Prototypes for the driver APIs. 35 | // 36 | //***************************************************************************** 37 | extern void RIT128x96x4Clear(void); 38 | extern void RIT128x96x4StringDraw(const char *pcStr, 39 | unsigned long ulX, 40 | unsigned long ulY, 41 | unsigned char ucLevel); 42 | extern void RIT128x96x4ImageDraw(const unsigned char *pucImage, 43 | unsigned long ulX, 44 | unsigned long ulY, 45 | unsigned long ulWidth, 46 | unsigned long ulHeight); 47 | extern void RIT128x96x4Init(unsigned long ulFrequency); 48 | extern void RIT128x96x4Enable(unsigned long ulFrequency); 49 | extern void RIT128x96x4Disable(void); 50 | extern void RIT128x96x4DisplayOn(void); 51 | extern void RIT128x96x4DisplayOff(void); 52 | 53 | #endif // __RIT128X96X4_H__ 54 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/FreeTCPIP/apps/httpd/httpd-fsdata.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the Institute nor the names of its contributors 14 | * may be used to endorse or promote products derived from this software 15 | * without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | * Author: Adam Dunkels 32 | * 33 | * $Id: httpd-fsdata.h,v 1.1 2006/06/17 22:41:14 adamdunkels Exp $ 34 | */ 35 | #ifndef __HTTPD_FSDATA_H__ 36 | #define __HTTPD_FSDATA_H__ 37 | 38 | struct httpd_fsdata_file { 39 | const struct httpd_fsdata_file *next; 40 | const char *name; 41 | const char *data; 42 | const int len; 43 | #ifdef HTTPD_FS_STATISTICS 44 | #if HTTPD_FS_STATISTICS == 1 45 | u16_t count; 46 | #endif /* HTTPD_FS_STATISTICS */ 47 | #endif /* HTTPD_FS_STATISTICS */ 48 | }; 49 | 50 | struct httpd_fsdata_file_noconst { 51 | struct httpd_fsdata_file *next; 52 | char *name; 53 | char *data; 54 | int len; 55 | #ifdef HTTPD_FS_STATISTICS 56 | #if HTTPD_FS_STATISTICS == 1 57 | u16_t count; 58 | #endif /* HTTPD_FS_STATISTICS */ 59 | #endif /* HTTPD_FS_STATISTICS */ 60 | }; 61 | 62 | #endif /* __HTTPD_FSDATA_H__ */ 63 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/MicroBlaze-Ethernet-Lite/include/arch/sys_arch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __ARCH_SYS_ARCH_H__ 33 | #define __ARCH_SYS_ARCH_H__ 34 | 35 | #include "FreeRTOS.h" 36 | #include "task.h" 37 | #include "queue.h" 38 | #include "semphr.h" 39 | 40 | #define SYS_MBOX_NULL ( ( QueueHandle_t ) NULL ) 41 | #define SYS_SEM_NULL ( ( SemaphoreHandle_t ) NULL ) 42 | #define SYS_DEFAULT_THREAD_STACK_DEPTH configMINIMAL_STACK_SIZE 43 | 44 | typedef SemaphoreHandle_t sys_sem_t; 45 | typedef SemaphoreHandle_t sys_mutex_t; 46 | typedef QueueHandle_t sys_mbox_t; 47 | typedef TaskHandle_t sys_thread_t; 48 | 49 | #define sys_mbox_valid( x ) ( ( ( *x ) == NULL) ? pdFALSE : pdTRUE ) 50 | #define sys_mbox_set_invalid( x ) ( ( *x ) = NULL ) 51 | #define sys_sem_valid( x ) ( ( ( *x ) == NULL) ? pdFALSE : pdTRUE ) 52 | #define sys_sem_set_invalid( x ) ( ( *x ) = NULL ) 53 | 54 | 55 | #endif /* __ARCH_SYS_ARCH_H__ */ 56 | 57 | -------------------------------------------------------------------------------- /Demo/Common/drivers/Atmel/at91lib/peripherals/tc/tc.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * ATMEL Microcontroller Software Support 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2008, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | 30 | #ifndef TC_H 31 | #define TC_H 32 | 33 | //------------------------------------------------------------------------------ 34 | // Headers 35 | //------------------------------------------------------------------------------ 36 | 37 | #include 38 | 39 | #if !defined(AT91C_ID_TC0) && defined(AT91C_ID_TC012) 40 | #define AT91C_ID_TC0 AT91C_ID_TC012 41 | #endif 42 | 43 | //------------------------------------------------------------------------------ 44 | // Global functions 45 | //------------------------------------------------------------------------------ 46 | 47 | extern void TC_Configure(AT91S_TC *pTc, unsigned int mode); 48 | 49 | extern void TC_Start(AT91S_TC *pTc); 50 | 51 | extern void TC_Stop(AT91S_TC *pTc); 52 | 53 | extern unsigned char TC_FindMckDivisor( 54 | unsigned int freq, 55 | unsigned int mck, 56 | unsigned int *div, 57 | unsigned int *tcclks); 58 | 59 | #endif //#ifndef TC_H 60 | 61 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP/include/lwip/tcpip.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LWIP_TCPIP_H__ 33 | #define __LWIP_TCPIP_H__ 34 | 35 | #include "lwip/api_msg.h" 36 | #include "lwip/pbuf.h" 37 | 38 | void tcpip_init(void (* tcpip_init_done)(void *), void *arg); 39 | void tcpip_apimsg(struct api_msg *apimsg); 40 | err_t tcpip_input(struct pbuf *p, struct netif *inp); 41 | err_t tcpip_callback(void (*f)(void *ctx), void *ctx); 42 | 43 | void tcpip_tcp_timer_needed(void); 44 | 45 | enum tcpip_msg_type { 46 | TCPIP_MSG_API, 47 | TCPIP_MSG_INPUT, 48 | TCPIP_MSG_CALLBACK 49 | }; 50 | 51 | struct tcpip_msg { 52 | enum tcpip_msg_type type; 53 | sys_sem_t *sem; 54 | union { 55 | struct api_msg *apimsg; 56 | struct { 57 | struct pbuf *p; 58 | struct netif *netif; 59 | } inp; 60 | struct { 61 | void (*f)(void *ctx); 62 | void *ctx; 63 | } cb; 64 | } msg; 65 | }; 66 | 67 | 68 | #endif /* __LWIP_TCPIP_H__ */ 69 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/ports/win32/include/arch/sys_arch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __ARCH_SYS_ARCH_H__ 33 | #define __ARCH_SYS_ARCH_H__ 34 | 35 | #include "FreeRTOS.h" 36 | #include "task.h" 37 | #include "queue.h" 38 | #include "semphr.h" 39 | 40 | #define SYS_MBOX_NULL ( ( QueueHandle_t ) NULL ) 41 | #define SYS_SEM_NULL ( ( SemaphoreHandle_t ) NULL ) 42 | #define SYS_DEFAULT_THREAD_STACK_DEPTH configMINIMAL_STACK_SIZE 43 | 44 | typedef SemaphoreHandle_t sys_sem_t; 45 | typedef SemaphoreHandle_t sys_mutex_t; 46 | typedef QueueHandle_t sys_mbox_t; 47 | typedef TaskHandle_t sys_thread_t; 48 | 49 | typedef unsigned long sys_prot_t; 50 | 51 | #define sys_mbox_valid( x ) ( ( ( *x ) == NULL) ? pdFALSE : pdTRUE ) 52 | #define sys_mbox_set_invalid( x ) ( ( *x ) = NULL ) 53 | #define sys_sem_valid( x ) ( ( ( *x ) == NULL) ? pdFALSE : pdTRUE ) 54 | #define sys_sem_set_invalid( x ) ( ( *x ) = NULL ) 55 | 56 | 57 | #endif /* __ARCH_SYS_ARCH_H__ */ 58 | 59 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwIP_132/src/include/ipv6/lwip/inet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LWIP_INET_H__ 33 | #define __LWIP_INET_H__ 34 | 35 | #include "lwip/opt.h" 36 | #include "lwip/pbuf.h" 37 | #include "lwip/ip_addr.h" 38 | 39 | #ifdef __cplusplus 40 | extern "C" { 41 | #endif 42 | 43 | u16_t inet_chksum(void *data, u16_t len); 44 | u16_t inet_chksum_pbuf(struct pbuf *p); 45 | u16_t inet_chksum_pseudo(struct pbuf *p, 46 | struct ip_addr *src, struct ip_addr *dest, 47 | u8_t proto, u32_t proto_len); 48 | 49 | u32_t inet_addr(const char *cp); 50 | s8_t inet_aton(const char *cp, struct in_addr *addr); 51 | 52 | #ifndef _MACHINE_ENDIAN_H_ 53 | #ifndef _NETINET_IN_H 54 | #ifndef _LINUX_BYTEORDER_GENERIC_H 55 | u16_t htons(u16_t n); 56 | u16_t ntohs(u16_t n); 57 | u32_t htonl(u32_t n); 58 | u32_t ntohl(u32_t n); 59 | #endif /* _LINUX_BYTEORDER_GENERIC_H */ 60 | #endif /* _NETINET_IN_H */ 61 | #endif /* _MACHINE_ENDIAN_H_ */ 62 | 63 | #ifdef __cplusplus 64 | } 65 | #endif 66 | 67 | #endif /* __LWIP_INET_H__ */ 68 | 69 | -------------------------------------------------------------------------------- /Demo/Common/ethernet/lwip-1.4.0/src/include/ipv6/lwip/inet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LWIP_INET_H__ 33 | #define __LWIP_INET_H__ 34 | 35 | #include "lwip/opt.h" 36 | #include "lwip/pbuf.h" 37 | #include "lwip/ip_addr.h" 38 | 39 | #ifdef __cplusplus 40 | extern "C" { 41 | #endif 42 | 43 | u16_t inet_chksum(void *data, u16_t len); 44 | u16_t inet_chksum_pbuf(struct pbuf *p); 45 | u16_t inet_chksum_pseudo(struct pbuf *p, 46 | struct ip_addr *src, struct ip_addr *dest, 47 | u8_t proto, u32_t proto_len); 48 | 49 | u32_t inet_addr(const char *cp); 50 | s8_t inet_aton(const char *cp, struct in_addr *addr); 51 | 52 | #ifndef _MACHINE_ENDIAN_H_ 53 | #ifndef _NETINET_IN_H 54 | #ifndef _LINUX_BYTEORDER_GENERIC_H 55 | u16_t htons(u16_t n); 56 | u16_t ntohs(u16_t n); 57 | u32_t htonl(u32_t n); 58 | u32_t ntohl(u32_t n); 59 | #endif /* _LINUX_BYTEORDER_GENERIC_H */ 60 | #endif /* _NETINET_IN_H */ 61 | #endif /* _MACHINE_ENDIAN_H_ */ 62 | 63 | #ifdef __cplusplus 64 | } 65 | #endif 66 | 67 | #endif /* __LWIP_INET_H__ */ 68 | 69 | --------------------------------------------------------------------------------