aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-07-08 20:49:50 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-07-08 20:49:50 +0000
commit7360b021a53cd1b40f8aae6d126be2bc20e1678e (patch)
tree89381ad21ce1f62289fa9c678adb862d54594bb8 /os/ex
parent9b8d0b5f57b6bb0e5046139c40ecb5c4948154a8 (diff)
downloadChibiOS-7360b021a53cd1b40f8aae6d126be2bc20e1678e.tar.gz
ChibiOS-7360b021a53cd1b40f8aae6d126be2bc20e1678e.tar.bz2
ChibiOS-7360b021a53cd1b40f8aae6d126be2bc20e1678e.zip
L3GD20 indent fixes
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9697 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ex')
-rw-r--r--os/ex/ST/l3gd20.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/os/ex/ST/l3gd20.c b/os/ex/ST/l3gd20.c
index 49bd1f000..faec7c13b 100644
--- a/os/ex/ST/l3gd20.c
+++ b/os/ex/ST/l3gd20.c
@@ -346,7 +346,7 @@ void l3gd20Start(L3GD20Driver *devp, const L3GD20Config *config) {
spiStart((devp)->config->spip,
(devp)->config->spicfg);
- /* Control register 1 configuration block */
+ /* Control register 1 configuration block.*/
{
cr[0] = L3GD20_CTRL_REG1_XEN | L3GD20_CTRL_REG1_YEN |
L3GD20_CTRL_REG1_ZEN | L3GD20_CTRL_REG1_PD |
@@ -356,7 +356,7 @@ void l3gd20Start(L3GD20Driver *devp, const L3GD20Config *config) {
#endif
}
- /* Control register 2 configuration block */
+ /* Control register 2 configuration block.*/
{
#if L3GD20_USE_ADVANCED || defined(__DOXYGEN__)
if(devp->config->hpmode != L3GD20_HPM_BYPASSED)
@@ -364,11 +364,7 @@ void l3gd20Start(L3GD20Driver *devp, const L3GD20Config *config) {
#endif
}
- /* Control register 3 configuration block */
- {
- }
-
- /* Control register 4 configuration block */
+ /* Control register 4 configuration block.*/
{
cr[3] = devp->config->fullscale;
#if L3GD20_USE_ADVANCED || defined(__DOXYGEN__)
@@ -377,7 +373,7 @@ void l3gd20Start(L3GD20Driver *devp, const L3GD20Config *config) {
#endif
}
- /* Control register 5 configuration block */
+ /* Control register 5 configuration block.*/
{
#if L3GD20_USE_ADVANCED || defined(__DOXYGEN__)
@@ -401,7 +397,7 @@ void l3gd20Start(L3GD20Driver *devp, const L3GD20Config *config) {
#endif /* L3GD20_SHARED_SPI */
#endif /* L3GD20_USE_SPI */
- /* Storing sensitivity information according to full scale and unit value */
+ /* Storing sensitivity information according to full scale and unit value.*/
if(devp->config->fullscale == L3GD20_FS_250DPS) {
devp->fullscale = L3GD20_250DPS;
for(i = 0; i < L3GD20_NUMBER_OF_AXES; i++) {
@@ -446,7 +442,7 @@ void l3gd20Start(L3GD20Driver *devp, const L3GD20Config *config) {
}
else
osalDbgAssert(FALSE, "l3gd20Start(), full scale issue");
- /* This is the Gyroscope transient recovery time */
+ /* This is the Gyroscope transient recovery time.*/
osalThreadSleepMilliseconds(10);
devp->state = L3GD20_READY;
@@ -473,7 +469,7 @@ void l3gd20Stop(L3GD20Driver *devp) {
spiStart((devp)->config->spip,
(devp)->config->spicfg);
#endif /* L3GD20_SHARED_SPI */
- /* Disabling all axes and enabling power down mode */
+ /* Disabling all axes and enabling power down mode.*/
cr1 = 0;
l3gd20SPIWriteRegister(devp->config->spip, L3GD20_AD_CTRL_REG1,
1, &cr1);