diff options
Diffstat (limited to 'demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h')
-rw-r--r-- | demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h | 5 |
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
|