aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-28 07:47:01 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-28 07:47:01 +0000
commit8d9074541c5740eb7ba9ec8313c5c806718e025f (patch)
treef103b985604f47b1d6083ff6a9d8b74ecbd53da5 /demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c
parent950cacebb01b21ad22d9406b48912022e800998a (diff)
downloadChibiOS-8d9074541c5740eb7ba9ec8313c5c806718e025f.tar.gz
ChibiOS-8d9074541c5740eb7ba9ec8313c5c806718e025f.tar.bz2
ChibiOS-8d9074541c5740eb7ba9ec8313c5c806718e025f.zip
Fixed bug 3579734.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4787 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c')
-rw-r--r--demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c b/demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c
index f52b9bffb..3655fc937 100644
--- a/demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c
+++ b/demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c
@@ -151,8 +151,8 @@ static const SPIConfig spi2cfg = {
};
/*
- * This is a periodic thread that does absolutely nothing except flashing
- * a LED.
+ * This is a periodic thread that reads accelerometer and outputs
+ * result to SPI2 and PWM.
*/
static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) {
@@ -306,10 +306,8 @@ int main(void) {
NORMALPRIO + 10, Thread1, NULL);
/*
- * Normal main() thread activity, in this demo it does nothing except
- * sleeping in a loop and check the button state, when the button is
- * pressed the test procedure is launched with output on the serial
- * driver 2.
+ * Normal main() thread activity, in this demo it just performs
+ * a shell respawn upon its termination.
*/
while (TRUE) {
if (!shelltp) {