From c72c6701301602911cc6aca301faeaa4abf5cb1e Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Fri, 9 Mar 2018 08:02:15 +0000 Subject: Updated STM32L4xx/SPI-L3GD20 demo. Cosmetic changes to L3GD20 demos git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11655 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- testex/STM32/STM32F3xx/SPI-L3GD20/main.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'testex/STM32/STM32F3xx') diff --git a/testex/STM32/STM32F3xx/SPI-L3GD20/main.c b/testex/STM32/STM32F3xx/SPI-L3GD20/main.c index c4c8e64dc..31379de73 100644 --- a/testex/STM32/STM32F3xx/SPI-L3GD20/main.c +++ b/testex/STM32/STM32F3xx/SPI-L3GD20/main.c @@ -95,29 +95,19 @@ int main(void) { halInit(); chSysInit(); - /* - * Activates the serial driver 1 using the driver default configuration. - */ + /* Activates the serial driver 1 using the driver default configuration.*/ sdStart(&SD1, NULL); - /* - * Creates the blinker thread. - */ + /* Creates the blinker thread.*/ chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL); - /* - * L3GD20 Object Initialization - */ + /* L3GD20 Object Initialization.*/ l3gd20ObjectInit(&L3GD20D1); - /* - * Activates the L3GD20 driver. - */ + /* Activates the L3GD20 driver.*/ l3gd20Start(&L3GD20D1, &l3gd20cfg); - /* - * Normal main() thread activity, printing MEMS data on the serial driver 1. - */ + /* Normal main() thread activity, printing MEMS data on the SD1.*/ while (true) { l3gd20GyroscopeReadRaw(&L3GD20D1, gyroraw); chprintf(chp, "L3GD20 Gyroscope raw data...\r\n"); -- cgit v1.2.3