aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-G++
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/ARM7-LPC214x-G++
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/ARM7-LPC214x-G++')
-rw-r--r--demos/ARM7-LPC214x-G++/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/ARM7-LPC214x-G++/main.cpp b/demos/ARM7-LPC214x-G++/main.cpp
index b217e86a2..b46ccd86e 100644
--- a/demos/ARM7-LPC214x-G++/main.cpp
+++ b/demos/ARM7-LPC214x-G++/main.cpp
@@ -99,10 +99,10 @@ protected:
case STOP:
return 0;
case BITCLEAR:
- palClearPort(IOPORT_A, curr->value);
+ palClearPort(IOPORT1, curr->value);
break;
case BITSET:
- palSetPort(IOPORT_A, curr->value);
+ palSetPort(IOPORT1, curr->value);
break;
}
curr++;
@@ -124,7 +124,7 @@ class TesterThread : public EnhancedThread<128> {
protected:
virtual msg_t Main(void) {
- return TestThread(&COM1);
+ return TestThread(&SD1);
}
public:
@@ -137,7 +137,7 @@ public:
*/
static void TimerHandler(eventid_t id) {
- if (!(palReadPort(IOPORT_A) & BOTH_BUTTONS)) { // Both buttons
+ if (!(palReadPort(IOPORT1) & BOTH_BUTTONS)) { // Both buttons
TesterThread tester;
tester.Wait();
};
@@ -155,9 +155,9 @@ int main(int argc, char **argv) {
struct EventListener el0;
/*
- * 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);
evtInit(&evt, 500); // Initializes an event timer.
evtStart(&evt); // Starts the event timer.