aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM4-STM32F407-DISCOVERY-MEMS
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
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')
-rw-r--r--demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c10
-rw-r--r--demos/ARMCM4-STM32F407-DISCOVERY-MEMS/readme.txt6
2 files changed, 7 insertions, 9 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) {
diff --git a/demos/ARMCM4-STM32F407-DISCOVERY-MEMS/readme.txt b/demos/ARMCM4-STM32F407-DISCOVERY-MEMS/readme.txt
index 0bfb13daf..940e07382 100644
--- a/demos/ARMCM4-STM32F407-DISCOVERY-MEMS/readme.txt
+++ b/demos/ARMCM4-STM32F407-DISCOVERY-MEMS/readme.txt
@@ -9,10 +9,10 @@ The demo runs on an ST STM32F4-Discovery board.
** The Demo **
The demo shows how to use PWM and SPI drivers using synchronous APIs. The PWM
-driver the four board lets with the data read from the LIS320DL accelerometer.
+driver the four board LEDs with the data read from the LIS320DL accelerometer.
The data is also transmitted on the SPI2 port.
-By pressing the button located on the board the test procedure is activated
-with output on the serial port SD2 (USART2).
+A simple command shell is activated on virtual serial port SD2 via USB-CDC
+driver (use micro-USB plug on STM32F4-Discovery board).
** Build Procedure **