aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32')
-rw-r--r--testhal/STM32/STM32F3xx/I2C-LSM303DLHC/main.c2
-rw-r--r--testhal/STM32/STM32F4xx/I2C-LSM303DLHC/main.c2
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c12
3 files changed, 8 insertions, 8 deletions
diff --git a/testhal/STM32/STM32F3xx/I2C-LSM303DLHC/main.c b/testhal/STM32/STM32F3xx/I2C-LSM303DLHC/main.c
index 30bcf3881..24ffabef4 100644
--- a/testhal/STM32/STM32F3xx/I2C-LSM303DLHC/main.c
+++ b/testhal/STM32/STM32F3xx/I2C-LSM303DLHC/main.c
@@ -218,7 +218,7 @@ static void cmd_fullscale(BaseSequentialStream *chp, int argc, char *argv[]) {
}
else if(!strcmp (argv[1], "16G")) {
accelerometerSetFullScale(&LSM303DLHCD1, LSM303DLHC_ACC_FS_16G);
- chprintf(chp, "LSM303DLHC Accelerometer full scale set to 4G...\r\n");
+ chprintf(chp, "LSM303DLHC Accelerometer full scale set to 16G...\r\n");
}
else {
chprintf(chp, "Usage: fullscale acc [2G|4G|8G|16G]\r\n");
diff --git a/testhal/STM32/STM32F4xx/I2C-LSM303DLHC/main.c b/testhal/STM32/STM32F4xx/I2C-LSM303DLHC/main.c
index 0ab38a92c..fb3adc819 100644
--- a/testhal/STM32/STM32F4xx/I2C-LSM303DLHC/main.c
+++ b/testhal/STM32/STM32F4xx/I2C-LSM303DLHC/main.c
@@ -209,7 +209,7 @@ static void cmd_fullscale(BaseSequentialStream *chp, int argc, char *argv[]) {
}
else if(!strcmp (argv[1], "16G")) {
accelerometerSetFullScale(&LSM303DLHCD1, LSM303DLHC_ACC_FS_16G);
- chprintf(chp, "LSM303DLHC Accelerometer full scale set to 4G...\r\n");
+ chprintf(chp, "LSM303DLHC Accelerometer full scale set to 16G...\r\n");
}
else {
chprintf(chp, "Usage: fullscale acc [2G|4G|8G|16G]\r\n");
diff --git a/testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c b/testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c
index fcdbfe81b..2ce99ef8e 100644
--- a/testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c
+++ b/testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c
@@ -41,7 +41,7 @@ static const SPIConfig spicfg = {
NULL,
GPIOE, /* port of LIS302DL CS.*/
GPIOE_CS_SPI, /* pin of LIS302DL CS.*/
- SPI_CR1_BR_0 | SPI_CR1_CPOL | SPI_CR1_CPHA,/* CR1 register.*/
+ SPI_CR1_BR_0 | SPI_CR1_CPOL | SPI_CR1_CPHA,/* CR1 register.*/
0 /* CR2 register.*/
};
@@ -50,10 +50,10 @@ static LIS302DLConfig l3gd20cfg = {
&spicfg, /* Pointer to SPI Configuration.*/
{0, 0, 0}, /* Use default sensitivity.*/
{0, 0, 0}, /* Use default bias.*/
- LIS302DL_FS_2G, /* Full scale value */
- LIS302DL_ODR_100HZ, /* Output data rate */
+ LIS302DL_FS_2G, /* Full scale value.*/
+ LIS302DL_ODR_100HZ, /* Output data rate.*/
#if LIS302DL_USE_ADVANCED || defined(__DOXYGEN__)
- LIS302DL_HP_DISABLED, /* HP filter disabled */
+ LIS302DL_HP_DISABLED, /* HP filter disabled.*/
#endif
};
@@ -112,11 +112,11 @@ static void cmd_fullscale(BaseSequentialStream *chp, int argc, char *argv[]) {
#endif
if(!strcmp (argv[0], "2G")) {
accelerometerSetFullScale(&LIS302DLD1, LIS302DL_FS_2G);
- chprintf(chp, "LIS302DL Accelerometer full scale set to 2 g...\r\n");
+ chprintf(chp, "LIS302DL Accelerometer full scale set to 2G...\r\n");
}
else if(!strcmp (argv[0], "8G")) {
accelerometerSetFullScale(&LIS302DLD1, LIS302DL_FS_8G);
- chprintf(chp, "LIS302DL Accelerometer full scale set to 8 g...\r\n");
+ chprintf(chp, "LIS302DL Accelerometer full scale set to 8G...\r\n");
}
else {
chprintf(chp, "Usage: fullscale [2G|8G]\r\n");