aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-03 19:24:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-03 19:24:16 +0000
commitcbf137ed955b30d8695d881aa8d16f1a723b89b5 (patch)
treeead8a7783643bb326b1158394c63a3a818104980 /demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h
parentfdf3ac2d0ab45974c5671cbfb5b6da2188087862 (diff)
downloadChibiOS-cbf137ed955b30d8695d881aa8d16f1a723b89b5.tar.gz
ChibiOS-cbf137ed955b30d8695d881aa8d16f1a723b89b5.tar.bz2
ChibiOS-cbf137ed955b30d8695d881aa8d16f1a723b89b5.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1203 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h')
-rw-r--r--demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h b/demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h
index 21ad75bde..e6a58ce12 100644
--- a/demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h
+++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h
@@ -339,7 +339,8 @@
#define THREAD_EXT_FIELDS \
struct { \
/* Add thread custom fields here.*/ \
- void *p_timeouts; \
+ /* Space for the LWIP sys_timeouts structure.*/ \
+ void *p_lwipspace[1]; \
};
#endif
@@ -350,7 +351,7 @@ struct { \
#if !defined(THREAD_EXT_INIT) || defined(__DOXYGEN__)
#define THREAD_EXT_INIT(tp) { \
/* Add thread initialization code here.*/ \
- currp->p_timeouts = NULL; \
+ (tp)->p_lwipspace[0] = NULL; \
}
#endif