diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-12 10:04:26 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-12 10:04:26 +0000 |
commit | ae8b38ea55f4d798d5313666194a7280053f460f (patch) | |
tree | f10c98030f2ab7f189b3315fc14f70bc8bd1abc6 /demos | |
parent | b4143002333b4d1ffdd4caa0f717d3e8485ebd62 (diff) | |
download | ChibiOS-ae8b38ea55f4d798d5313666194a7280053f460f.tar.gz ChibiOS-ae8b38ea55f4d798d5313666194a7280053f460f.tar.bz2 ChibiOS-ae8b38ea55f4d798d5313666194a7280053f460f.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@461 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r-- | demos/MSP430-MSP430x1611-GCC/Makefile | 1 | ||||
-rw-r--r-- | demos/MSP430-MSP430x1611-GCC/board.c | 6 | ||||
-rw-r--r-- | demos/MSP430-MSP430x1611-GCC/board.h | 2 | ||||
-rw-r--r-- | demos/MSP430-MSP430x1611-GCC/main.c | 5 |
4 files changed, 11 insertions, 3 deletions
diff --git a/demos/MSP430-MSP430x1611-GCC/Makefile b/demos/MSP430-MSP430x1611-GCC/Makefile index 4d2b01bd3..097300911 100644 --- a/demos/MSP430-MSP430x1611-GCC/Makefile +++ b/demos/MSP430-MSP430x1611-GCC/Makefile @@ -67,6 +67,7 @@ include ../../test/test.mk # List ARM-mode C source files here
SRC = ../../ports/MSP430/chcore.c \
+ ../../ports/MSP430/msp430_serial.c \
${KERNSRC} \
${TESTSRC} \
../../src/lib/evtimer.c \
diff --git a/demos/MSP430-MSP430x1611-GCC/board.c b/demos/MSP430-MSP430x1611-GCC/board.c index caef10720..e6ae187da 100644 --- a/demos/MSP430-MSP430x1611-GCC/board.c +++ b/demos/MSP430-MSP430x1611-GCC/board.c @@ -21,6 +21,7 @@ #include <signal.h>
#include "board.h"
+#include "msp430_serial.h"
/*
* Hardware initialization goes here.
@@ -77,6 +78,11 @@ void hwinit(void) { TACTL = TACLR; /* Clean start. */
TACTL = TASSEL_2 | MC_1; /* Src=SMCLK, cmp=TACCR0. */
TACCTL0 = CCIE; /* Interrupt on compare. */
+
+ /*
+ * Other subsystems.
+ */
+ InitSerial();
}
interrupt(TIMERA0_VECTOR) tmr0irq(void) {
diff --git a/demos/MSP430-MSP430x1611-GCC/board.h b/demos/MSP430-MSP430x1611-GCC/board.h index d72da9c2c..f7173f712 100644 --- a/demos/MSP430-MSP430x1611-GCC/board.h +++ b/demos/MSP430-MSP430x1611-GCC/board.h @@ -34,7 +34,7 @@ #define LFXT1CLK 32768
#define XT2CLK 8000000
-#define DCOCLK 1000000
+#define DCOCLK 750000
#define ACLK LFXT1CLK
#if defined(MSP_USE_XT2CLK)
diff --git a/demos/MSP430-MSP430x1611-GCC/main.c b/demos/MSP430-MSP430x1611-GCC/main.c index 72736fc54..19ffacf7f 100644 --- a/demos/MSP430-MSP430x1611-GCC/main.c +++ b/demos/MSP430-MSP430x1611-GCC/main.c @@ -21,6 +21,7 @@ #include <test.h>
#include "board.h"
+#include "msp430_serial.h"
/*
* Red LEDs blinker thread, times are in milliseconds.
@@ -63,8 +64,8 @@ int main(int argc, char **argv) { * sleeping in a loop.
*/
while (TRUE) {
-// if (!(P6IN & P6_I_BUTTON))
-// TestThread(&COM1);
+ if (!(P6IN & P6_I_BUTTON))
+ TestThread(&COM1);
chThdSleep(500);
}
return 0;
|