save memory, to avoid stack hitting data segment
Stefan Schuermans

Stefan Schuermans commited on 2012-05-06 17:28:25
Showing 5 changed files, with 5 additions and 5 deletions.

... ...
@@ -132,7 +132,7 @@ static void AppBbmParseHeader(AppBbmState *state)
132 132
     return; // retry with next file in next iteration
133 133
   }
134 134
   state->dataSz = state->height * state->width * state->channels;
135
-  if (state->dataSz > 1024) {
135
+  if (state->dataSz > 768) {
136 136
     debug_app_bbm_printf("%hhu: BBM frame size too large", state->no);
137 137
     return; // retry with next file in next iteration
138 138
   }
... ...
@@ -26,7 +26,7 @@ struct ArpTable {
26 26
   unsigned char Ticks;  // age of entry in 200ms steps
27 27
   unsigned char Mac[6];
28 28
   unsigned char Ip[4];
29
-} ArpTab[12];
29
+} ArpTab[4];
30 30
 
31 31
 // initialize
32 32
 void ArpInit(void)      // (extern)
... ...
@@ -47,7 +47,7 @@ struct HttpConnection {
47 47
   uint16_t pSndData;    // the data to send (progmem pointer)
48 48
   unsigned short SndDataLen;    // the length of the data to send
49 49
   char Vars;    // flag if to interpret variables
50
-} HttpConns[4];
50
+} HttpConns[2];
51 51
 
52 52
 // parse HTTP command
53 53
 static void HttpParseCommand(struct HttpConnection *pConn)
... ...
@@ -15,7 +15,7 @@
15 15
 #include "timing.h"
16 16
 
17 17
 // maximum receive unit
18
-#define RTL_MRU (640)
18
+#define RTL_MRU (320)
19 19
 
20 20
 // reinitialization timeout
21 21
 // - if no reception is detected for this time, the RTL8019 is reinitialized
... ...
@@ -34,7 +34,7 @@
34 34
                                 // is reset (in 200ms steps, max. 255)
35 35
 
36 36
 // TCP connections
37
-struct TcpConnection TcpConns[8];
37
+struct TcpConnection TcpConns[4];
38 38
 
39 39
 // initialize
40 40
 void TcpInit(void)      // (extern)
41 41