From 950cacebb01b21ad22d9406b48912022e800998a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 28 Oct 2012 07:42:57 +0000 Subject: Fixed bug 3581304. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4786 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/MSP430-MSP430x1611-GCC/main.c | 10 ++-------- demos/Win32-MinGW/readme.txt | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'demos') diff --git a/demos/MSP430-MSP430x1611-GCC/main.c b/demos/MSP430-MSP430x1611-GCC/main.c index 00f2fb95c..798875e6a 100644 --- a/demos/MSP430-MSP430x1611-GCC/main.c +++ b/demos/MSP430-MSP430x1611-GCC/main.c @@ -55,16 +55,10 @@ int main(void) { chSysInit(); /* - * Activates the serial driver 2 using the driver default configuration. + * Activates the serial driver 1 using the driver default configuration. */ sdStart(&SD1, NULL); - /* - * The main() function becomes a thread here then the interrupts are - * enabled and ChibiOS/RT goes live. - */ - chSysInit(); - /* * Creates the blinker thread. */ @@ -72,7 +66,7 @@ int main(void) { /* * Normal main() thread activity, in this demo it does nothing except - * sleeping in a loop. + * checking a button and run a test suite if button was pressed. */ while (TRUE) { if (!palReadPad(IOPORT6, P6_I_BUTTON)) diff --git a/demos/Win32-MinGW/readme.txt b/demos/Win32-MinGW/readme.txt index 047425ffe..e72e2e0a3 100644 --- a/demos/Win32-MinGW/readme.txt +++ b/demos/Win32-MinGW/readme.txt @@ -11,8 +11,8 @@ I/O is simulated over TCP/IP sockets. The demo listens on the two serial ports, when a connection is detected a thread is started that serves a small command shell. -The demo shows how create/terminate threads at runtime, how listen to events, -how ho work with serial ports, how use the messages. +The demo shows how to create/terminate threads at runtime, how to listen to +events, how to work with serial ports, how to use the messages. You can develop your ChibiOS/RT application using this demo as a simulator then you can recompile it for a different architecture. See demo.c for details. -- cgit v1.2.3