From 03d5b66b8df079337a2fcddeb966f4fa1abce8f6 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Wed, 22 Jun 2016 08:34:55 +0000 Subject: Updated all L3GD20 related demos git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9648 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F3xx/SPI-L3GD20/main.c | 2 +- testhal/STM32/STM32F3xx/SPI-L3GD20/readme.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testhal/STM32/STM32F3xx/SPI-L3GD20') diff --git a/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c b/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c index b37a16d5a..beb2b6927 100644 --- a/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c +++ b/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c @@ -186,7 +186,7 @@ static void cmd_bias(BaseSequentialStream *chp, int argc, char *argv[]) { #endif chprintf(chp, "Please don't move the device while Green LEDs are on!\r\n"); chprintf(chp, "Press a key to start...\r\n"); - while (chnGetTimeout((BaseChannel *)chp, TIME_IMMEDIATE) == Q_TIMEOUT) + while (chnGetTimeout((BaseChannel *)chp, 500) == Q_TIMEOUT) ; palSetLine(LINE_LED6_GREEN); palSetLine(LINE_LED7_GREEN); diff --git a/testhal/STM32/STM32F3xx/SPI-L3GD20/readme.txt b/testhal/STM32/STM32F3xx/SPI-L3GD20/readme.txt index 39d8d97f6..f84f6001a 100644 --- a/testhal/STM32/STM32F3xx/SPI-L3GD20/readme.txt +++ b/testhal/STM32/STM32F3xx/SPI-L3GD20/readme.txt @@ -8,8 +8,8 @@ The demo runs on an STM32F3 Discovery board. ** The Demo ** -The demo flashes the board LED using a thread, read data from L3GD20 printing -it on a BaseSequentialStream (SDU1, mapped on USB virtual COM port). +The demo uses the ChibiOS Shell in order to test L3GD20 APIs. +Shell is used on the SDU1 BaseSequentialStream. ** Build Procedure ** -- cgit v1.2.3