aboutsummaryrefslogtreecommitdiffstats
path: root/testex/STM32/STM32F4xx
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-09 08:06:25 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-09 08:06:25 +0000
commitccdc24bfd1edd2bd0d8a11bec8c6c782c69dcdfd (patch)
treebd15db5c46187c03a81044241ddbf3720b15738f /testex/STM32/STM32F4xx
parentc72c6701301602911cc6aca301faeaa4abf5cb1e (diff)
downloadChibiOS-ccdc24bfd1edd2bd0d8a11bec8c6c782c69dcdfd.tar.gz
ChibiOS-ccdc24bfd1edd2bd0d8a11bec8c6c782c69dcdfd.tar.bz2
ChibiOS-ccdc24bfd1edd2bd0d8a11bec8c6c782c69dcdfd.zip
Cosmetic changes to LSM303DLHC demos
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11656 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'testex/STM32/STM32F4xx')
-rw-r--r--testex/STM32/STM32F4xx/I2C-LSM303DLHC/main.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/testex/STM32/STM32F4xx/I2C-LSM303DLHC/main.c b/testex/STM32/STM32F4xx/I2C-LSM303DLHC/main.c
index baaef81ad..bd84f00f9 100644
--- a/testex/STM32/STM32F4xx/I2C-LSM303DLHC/main.c
+++ b/testex/STM32/STM32F4xx/I2C-LSM303DLHC/main.c
@@ -104,9 +104,7 @@ int main(void) {
halInit();
chSysInit();
- /*
- * Initializes a serial-over-USB CDC driver.
- */
+ /* Initializes a serial-over-USB CDC driver.*/
sduObjectInit(&SDU1);
sduStart(&SDU1, &serusbcfg);
@@ -120,24 +118,16 @@ int main(void) {
usbStart(serusbcfg.usbp, &usbcfg);
usbConnectBus(serusbcfg.usbp);
- /*
- * Creates the blinker thread.
- */
+ /* Creates the blinker thread.*/
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO + 1, Thread1, NULL);
- /*
- * LSM303DLHC Object Initialization
- */
+ /* LSM303DLHC Object Initialization.*/
lsm303dlhcObjectInit(&LSM303DLHCD1);
- /*
- * Activates the LSM303DLHC driver.
- */
+ /* Activates the LSM303DLHC driver.*/
lsm303dlhcStart(&LSM303DLHCD1, &lsm303dlhccfg);
- /*
- * Normal main() thread activity, printing MEMS data on the serial driver 1.
- */
+ /* Normal main() thread activity, printing MEMS data on the SDU1. */
while (true) {
lsm303dlhcAccelerometerReadRaw(&LSM303DLHCD1, accraw);
chprintf(chp, "LSM303DLHC Accelerometer raw data...\r\n");