aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-08 13:11:28 +0100
committerDavid Sidrane <david_s5@nscdg.com>2015-03-05 08:33:56 -1000
commitbdc7bb447e9671a159bd9754ff84219db91cb439 (patch)
treed76b215e2c91712cafa9d3d20cbad5b01e0a099e
parentc9a201c82f3c3a024d9d23cf88557f92521bbeb5 (diff)
downloadpx4-firmware-bdc7bb447e9671a159bd9754ff84219db91cb439.tar.gz
px4-firmware-bdc7bb447e9671a159bd9754ff84219db91cb439.tar.bz2
px4-firmware-bdc7bb447e9671a159bd9754ff84219db91cb439.zip
Fix code style in IO driver
-rw-r--r--src/drivers/px4io/px4io_serial.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/px4io/px4io_serial.cpp b/src/drivers/px4io/px4io_serial.cpp
index 752f22d01..c6c0126f4 100644
--- a/src/drivers/px4io/px4io_serial.cpp
+++ b/src/drivers/px4io/px4io_serial.cpp
@@ -218,7 +218,7 @@ PX4IO_serial::~PX4IO_serial()
stm32_unconfiggpio(PX4IO_SERIAL_RX_GPIO);
/* Disable APB clock for the USART peripheral */
- modifyreg32(STM32_RCC_APB2ENR, RCC_APB2ENR_USART6EN, 0);
+ modifyreg32(STM32_RCC_APB2ENR, RCC_APB2ENR_USART6EN, 0);
/* and kill our semaphores */
sem_destroy(&_completion_semaphore);
@@ -252,7 +252,7 @@ PX4IO_serial::init()
/* Enable the APB clock for the USART peripheral */
- modifyreg32(STM32_RCC_APB2ENR, 0, RCC_APB2ENR_USART6EN);
+ modifyreg32(STM32_RCC_APB2ENR, 0, RCC_APB2ENR_USART6EN);
/* configure pins for serial use */
stm32_configgpio(PX4IO_SERIAL_TX_GPIO);