From 8d9074541c5740eb7ba9ec8313c5c806718e025f Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 28 Oct 2012 07:47:01 +0000 Subject: Fixed bug 3579734. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4787 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c | 10 ++++------ demos/ARMCM4-STM32F407-DISCOVERY-MEMS/readme.txt | 6 +++--- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'demos/ARMCM4-STM32F407-DISCOVERY-MEMS') 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 ** -- cgit v1.2.3