diff options
Diffstat (limited to 'demos/ARMCM4-STM32F407-DISCOVERY-MEMS')
-rw-r--r-- | demos/ARMCM4-STM32F407-DISCOVERY-MEMS/main.c | 10 | ||||
-rw-r--r-- | demos/ARMCM4-STM32F407-DISCOVERY-MEMS/readme.txt | 6 |
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 **
|