aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-AT91SAM7X-LWIP-GCC/main.c
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/main.c
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/main.c')
-rw-r--r--demos/ARM7-AT91SAM7X-LWIP-GCC/main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/main.c b/demos/ARM7-AT91SAM7X-LWIP-GCC/main.c
index f6c297a41..098e764a5 100644
--- a/demos/ARM7-AT91SAM7X-LWIP-GCC/main.c
+++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/main.c
@@ -23,15 +23,16 @@
#include <test.h>
#include "board.h"
+#include "lwipthread.h"
static WORKING_AREA(waThread1, 64);
static msg_t Thread1(void *arg) {
while (TRUE) {
- palSetPad(IOPORT2, PIOB_LCD_BL);
- chThdSleepMilliseconds(100);
palClearPad(IOPORT2, PIOB_LCD_BL);
chThdSleepMilliseconds(900);
+ palSetPad(IOPORT2, PIOB_LCD_BL);
+ chThdSleepMilliseconds(100);
}
return 0;
}
@@ -53,6 +54,12 @@ int main(int argc, char **argv) {
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
/*
+ * Creates the LWIP threads.
+ */
+ chThdCreateStatic(wa_lwip_thread, LWIP_THREAD_STACK_SIZE, LOWPRIO,
+ lwip_thread, NULL);
+
+ /*
* Normal main() thread activity.
*/
while (TRUE) {