aboutsummaryrefslogtreecommitdiffstats
path: root/demos/MSP430-MSP430x1611-GCC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-08-27 16:42:07 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-08-27 16:42:07 +0000
commit8b55cb9767ce881b7a22c5af34605ed3a261582d (patch)
tree2b1e4239c2909496d83058a0a16da65525c9e70c /demos/MSP430-MSP430x1611-GCC
parentb8e618f59a5bc34aa76e2aacd6484ad217c54e33 (diff)
downloadChibiOS-8b55cb9767ce881b7a22c5af34605ed3a261582d.tar.gz
ChibiOS-8b55cb9767ce881b7a22c5af34605ed3a261582d.tar.bz2
ChibiOS-8b55cb9767ce881b7a22c5af34605ed3a261582d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1109 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/MSP430-MSP430x1611-GCC')
-rw-r--r--demos/MSP430-MSP430x1611-GCC/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/MSP430-MSP430x1611-GCC/main.c b/demos/MSP430-MSP430x1611-GCC/main.c
index d52f2bb07..02622e817 100644
--- a/demos/MSP430-MSP430x1611-GCC/main.c
+++ b/demos/MSP430-MSP430x1611-GCC/main.c
@@ -31,9 +31,9 @@ static WORKING_AREA(waThread1, 64);
static msg_t Thread1(void *arg) {
while (TRUE) {
- palSetPad(IOPORT_F, P6_O_LED);
+ palSetPad(IOPORT6, P6_O_LED);
chThdSleepMilliseconds(500);
- palClearPad(IOPORT_F, P6_O_LED);
+ palClearPad(IOPORT6, P6_O_LED);
chThdSleepMilliseconds(500);
}
return 0;
@@ -50,9 +50,9 @@ int main(int argc, char **argv) {
hwinit();
/*
- * Activates the communication port 1 using the driver default configuration.
+ * Activates the serial driver 2 using the driver default configuration.
*/
- sdStart(&COM1, NULL);
+ sdStart(&SD1, NULL);
/*
* The main() function becomes a thread here then the interrupts are
@@ -70,8 +70,8 @@ int main(int argc, char **argv) {
* sleeping in a loop.
*/
while (TRUE) {
- if (!palReadPad(IOPORT_F, P6_I_BUTTON))
- TestThread(&COM1);
+ if (!palReadPad(IOPORT6, P6_I_BUTTON))
+ TestThread(&SD1);
chThdSleepMilliseconds(500);
}
return 0;