Changeset 10
- Timestamp:
- 06/12/09 13:08:31 (16 years ago)
- Files:
-
- webserver/example/EasyWEB/ARM Flash Debug (added)
- webserver/example/EasyWEB/ARM Flash Debug/EMAC.d (added)
- webserver/example/EasyWEB/ARM Flash Debug/EasyWeb.elf (added)
- webserver/example/EasyWEB/ARM Flash Debug/EasyWeb.ld (added)
- webserver/example/EasyWEB/ARM Flash Debug/EasyWeb.map (added)
- webserver/example/EasyWEB/ARM Flash Debug/LPC230x.d (added)
- webserver/example/EasyWEB/ARM Flash Debug/Philips_LPC230X_Startup.d (added)
- webserver/example/EasyWEB/ARM Flash Debug/Retarget.d (added)
- webserver/example/EasyWEB/ARM Flash Debug/VIC_PL192.d (added)
- webserver/example/EasyWEB/ARM Flash Debug/VIC_PL192_irq_handler.d (added)
- webserver/example/EasyWEB/ARM Flash Debug/crt0.d (added)
- webserver/example/EasyWEB/ARM Flash Debug/easyweb.d (added)
- webserver/example/EasyWEB/ARM Flash Debug/tcpip.d (added)
- webserver/example/EasyWEB/ARM Flash Debug/tmp (added)
- webserver/example/EasyWEB/ARM Flash Release (added)
- webserver/example/EasyWEB/ARM Flash Release/EMAC.d (added)
- webserver/example/EasyWEB/ARM Flash Release/EasyWeb.elf (added)
- webserver/example/EasyWEB/ARM Flash Release/EasyWeb.ld (added)
- webserver/example/EasyWEB/ARM Flash Release/EasyWeb.map (added)
- webserver/example/EasyWEB/ARM Flash Release/LPC230x.d (added)
- webserver/example/EasyWEB/ARM Flash Release/Philips_LPC230X_Startup.d (added)
- webserver/example/EasyWEB/ARM Flash Release/Retarget.d (added)
- webserver/example/EasyWEB/ARM Flash Release/VIC_PL192.d (added)
- webserver/example/EasyWEB/ARM Flash Release/VIC_PL192_irq_handler.d (added)
- webserver/example/EasyWEB/ARM Flash Release/crt0.d (added)
- webserver/example/EasyWEB/ARM Flash Release/easyweb.d (added)
- webserver/example/EasyWEB/ARM Flash Release/tcpip.d (added)
- webserver/example/EasyWEB/ARM Flash Release/tmp (added)
- webserver/example/EasyWEB/ARM RAM Debug (added)
- webserver/example/EasyWEB/ARM RAM Debug/EMAC.d (added)
- webserver/example/EasyWEB/ARM RAM Debug/EasyWeb.elf (added)
- webserver/example/EasyWEB/ARM RAM Debug/EasyWeb.ld (added)
- webserver/example/EasyWEB/ARM RAM Debug/EasyWeb.map (added)
- webserver/example/EasyWEB/ARM RAM Debug/LPC230x.d (added)
- webserver/example/EasyWEB/ARM RAM Debug/Philips_LPC230X_Startup.d (added)
- webserver/example/EasyWEB/ARM RAM Debug/Retarget.d (added)
- webserver/example/EasyWEB/ARM RAM Debug/VIC_PL192.d (added)
- webserver/example/EasyWEB/ARM RAM Debug/VIC_PL192_irq_handler.d (added)
- webserver/example/EasyWEB/ARM RAM Debug/catch_irqs.d (added)
- webserver/example/EasyWEB/ARM RAM Debug/crt0.d (added)
- webserver/example/EasyWEB/ARM RAM Debug/easyweb.d (added)
- webserver/example/EasyWEB/ARM RAM Debug/tcpip.d (added)
- webserver/example/EasyWEB/ARM RAM Debug/tmp (added)
- webserver/example/EasyWEB/EasyWeb.hzp (added)
- webserver/example/EasyWEB/EasyWeb.hzs (added)
- webserver/example/EasyWEB/LPC23xx.h (added)
- webserver/example/EasyWEB/Retarget.c (modified) (2 diffs)
- webserver/example/EasyWEB/catch_irqs.cpp (added)
- webserver/example/EasyWEB/easyweb.c (modified) (1 diff)
- webserver/example/EasyWEB/easyweb.c.bak (added)
- webserver/example/EasyWEB/tcpip.c (modified) (2 diffs)
- webserver/example/EasyWEB/tcpip.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
webserver/example/EasyWEB/Retarget.c
r9 r10 9 9 /******************************************************************************/ 10 10 11 #if 0 11 12 #include <rt_misc.h> 12 13 … … 20 21 label: goto label; /* endless loop */ 21 22 } 23 24 25 #endif webserver/example/EasyWEB/easyweb.c
r9 r10 22 22 #include "EMAC.h" // Ethernet packet driver 23 23 #include "tcpip.h" // easyWEB TCP/IP stack 24 #include <LPC23xx.h>// Keil: Register definition file for LPC236824 #include "LPC23xx.h" // Keil: Register definition file for LPC2368 25 25 #include "webpage.h" // webside for our HTTP server (HTML) 26 26 27 27 28 28 //void main(void) 29 intmain(void)29 void main(void) 30 30 { 31 32 31 33 TCPLowLevelInit(); 32 34 webserver/example/EasyWEB/tcpip.c
r9 r10 33 33 T0MCR = 3; // Interrupt and Reset on MR0 34 34 T0TCR = 1; // Timer0 Enable 35 VICVectAddr4 = (unsigned int)TCPClockHandler; // set interrupt vector in 436 VICIntEnable = 0x00000010; // Enable Timer0 Interrupt35 //VICVectAddr4 = (unsigned int)&TCPClockHandler; // set interrupt vector in 4 36 //VICIntEnable = 0x00000010; // Enable Timer0 Interrupt 37 37 38 38 Init_EMAC(); … … 913 913 // function executed every 0.210s by the CPU. used for the 914 914 // inital sequence number generator (ISN) and the TCP-timer 915 void TCPClockHandler(void) __irq // Keil: interrupt service routine for timer 0 915 //void TCPClockHandler(void) __irq // Keil: interrupt service routine for timer 0 916 917 void TCPClockHandler(void) 916 918 { 917 919 ISNGenHigh++; // upper 16 bits of initial sequence number webserver/example/EasyWEB/tcpip.h
r9 r10 18 18 #define MYIP_1 192 // our internet protocol (IP) address 19 19 #define MYIP_2 168 20 #define MYIP_3 120 #define MYIP_3 3 21 21 #define MYIP_4 100 22 22 … … 273 273 void TCPReleaseRxBuffer(void); // indicate to discard rec'd packet 274 274 void TCPTransmitTxBuffer(void); // initiate transfer after TxBuffer is filled 275 void TCPClockHandler(void) __irq; // Keil: interrupt service routine for timer 0 275 //void TCPClockHandler(void) __irq; // Keil: interrupt service routine for timer 0 276 277 278 void TCPClockHandler(void) __attribute__ ((interrupt ("IRQ"))); 279 280 276 281 277 282 // easyWEB-API global vars and flags