aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-30 19:11:03 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-30 19:11:03 +0000
commit770c4873d20623f6d4f678d62b67eb6218e259bf (patch)
treec461c249b3738e0bf33039a43876fd7da5578c70 /demos
parent39d171f7ef1cf093a1b1a05650afb0256b7c7ce1 (diff)
downloadChibiOS-770c4873d20623f6d4f678d62b67eb6218e259bf.tar.gz
ChibiOS-770c4873d20623f6d4f678d62b67eb6218e259bf.tar.bz2
ChibiOS-770c4873d20623f6d4f678d62b67eb6218e259bf.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1367 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r--demos/ARM7-AT91SAM7X-GCC/board.c7
-rw-r--r--demos/ARM7-AT91SAM7X-LWIP-GCC/board.c7
-rw-r--r--demos/ARM7-AT91SAM7X-LWIP-GCC/main.c8
-rw-r--r--demos/ARM7-AT91SAM7X-UIP-GCC/board.c5
4 files changed, 18 insertions, 9 deletions
diff --git a/demos/ARM7-AT91SAM7X-GCC/board.c b/demos/ARM7-AT91SAM7X-GCC/board.c
index b9704971c..fab8b0338 100644
--- a/demos/ARM7-AT91SAM7X-GCC/board.c
+++ b/demos/ARM7-AT91SAM7X-GCC/board.c
@@ -44,7 +44,10 @@ static CH_IRQ_HANDLER(SYSIrqHandler) {
* segments initialization.
*/
void hwinit0(void) {
-
+
+ /* Watchdog disabled.*/
+ AT91C_BASE_WDTC->WDTC_WDMR = AT91C_WDTC_WDDIS;
+
at91sam7_clock_init();
}
@@ -56,7 +59,7 @@ void hwinit0(void) {
void hwinit1(void) {
/*
- * HAL initialization.
+ * HAL initialization.
*/
halInit();
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/board.c b/demos/ARM7-AT91SAM7X-LWIP-GCC/board.c
index b9704971c..fab8b0338 100644
--- a/demos/ARM7-AT91SAM7X-LWIP-GCC/board.c
+++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/board.c
@@ -44,7 +44,10 @@ static CH_IRQ_HANDLER(SYSIrqHandler) {
* segments initialization.
*/
void hwinit0(void) {
-
+
+ /* Watchdog disabled.*/
+ AT91C_BASE_WDTC->WDTC_WDMR = AT91C_WDTC_WDDIS;
+
at91sam7_clock_init();
}
@@ -56,7 +59,7 @@ void hwinit0(void) {
void hwinit1(void) {
/*
- * HAL initialization.
+ * HAL initialization.
*/
halInit();
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/main.c b/demos/ARM7-AT91SAM7X-LWIP-GCC/main.c
index f097b059d..3b469aed4 100644
--- a/demos/ARM7-AT91SAM7X-LWIP-GCC/main.c
+++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/main.c
@@ -21,8 +21,8 @@
#include "hal.h"
#include "test.h"
-#include "lwip\lwipthread.h"
-#include "web\web.h"
+#include "lwip/lwipthread.h"
+#include "web/web.h"
static WORKING_AREA(waThread1, 64);
static msg_t Thread1(void *arg) {
@@ -57,13 +57,13 @@ int main(int argc, char **argv) {
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
/*
- * Creates the LWIP threads (it changes priority internally).
+ * Creates the LWIP threads (it changes priority internally).
*/
chThdCreateStatic(wa_lwip_thread, LWIP_THREAD_STACK_SIZE, NORMALPRIO + 1,
lwip_thread, NULL);
/*
- * Creates the HTTP thread (it changes priority internally).
+ * Creates the HTTP thread (it changes priority internally).
*/
chThdCreateStatic(wa_http_server, sizeof(wa_http_server), NORMALPRIO + 1,
http_server, NULL);
diff --git a/demos/ARM7-AT91SAM7X-UIP-GCC/board.c b/demos/ARM7-AT91SAM7X-UIP-GCC/board.c
index b9704971c..c55b5869e 100644
--- a/demos/ARM7-AT91SAM7X-UIP-GCC/board.c
+++ b/demos/ARM7-AT91SAM7X-UIP-GCC/board.c
@@ -45,6 +45,9 @@ static CH_IRQ_HANDLER(SYSIrqHandler) {
*/
void hwinit0(void) {
+ /* Watchdog disabled.*/
+ AT91C_BASE_WDTC->WDTC_WDMR = AT91C_WDTC_WDDIS;
+
at91sam7_clock_init();
}
@@ -56,7 +59,7 @@ void hwinit0(void) {
void hwinit1(void) {
/*
- * HAL initialization.
+ * HAL initialization.
*/
halInit();