diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-07-28 14:53:44 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-07-28 14:53:44 +0000 |
commit | daedf9889b3140fb146a58dbafb48b2018ed9301 (patch) | |
tree | 9473d7215a2b4dc55f0eaf7401add9e269ac923f /testhal/STM32/STM32F4xx | |
parent | be45af2a10460c65ef86ebec459a3d517a8af7d6 (diff) | |
download | ChibiOS-daedf9889b3140fb146a58dbafb48b2018ed9301.tar.gz ChibiOS-daedf9889b3140fb146a58dbafb48b2018ed9301.tar.bz2 ChibiOS-daedf9889b3140fb146a58dbafb48b2018ed9301.zip |
Fixed typos in EX demos.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9729 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx')
-rw-r--r-- | testhal/STM32/STM32F4xx/I2C-LSM303DLHC/main.c | 2 | ||||
-rw-r--r-- | testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c | 12 |
2 files changed, 7 insertions, 7 deletions
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");
|