[Style] A small coding style fixing session.

This commit is contained in:
Piotr Esden-Tempski
2013-07-05 20:35:13 -07:00
parent db1f19c8f8
commit 2f425af647
14 changed files with 29 additions and 27 deletions

View File

@@ -137,9 +137,9 @@ void gpio_set_output_options(uint32_t gpioport, uint8_t otype, uint8_t speed,
if (otype == 0x1) {
GPIO_OTYPER(gpioport) |= gpios;
}
else
} else {
GPIO_OTYPER(gpioport) &= ~gpios;
}
ospeedr = GPIO_OSPEEDR(gpioport);

View File

@@ -172,7 +172,7 @@ threshold.
bool pwr_voltage_high(void)
{
return (PWR_CSR & PWR_CSR_PVDO);
return PWR_CSR & PWR_CSR_PVDO;
}
/*---------------------------------------------------------------------------*/
@@ -186,7 +186,7 @@ cleared by software (see @ref pwr_clear_standby_flag).
bool pwr_get_standby_flag(void)
{
return (PWR_CSR & PWR_CSR_SBF);
return PWR_CSR & PWR_CSR_SBF;
}
/*---------------------------------------------------------------------------*/
@@ -203,4 +203,3 @@ bool pwr_get_wakeup_flag(void)
return PWR_CSR & PWR_CSR_WUF;
}
/**@}*/

View File

@@ -1,4 +1,4 @@
/** @addtogroup rtc_file
/** @addtogroup rtc_file
@author @htmlonly &copy; @endhtmlonly 2012 Karl Palsson <karlp@tweak.net.au>

View File

@@ -1066,7 +1066,7 @@ void adc_set_regular_sequence(uint32_t adc, uint8_t length, uint8_t channel[])
reg32_1 |= (channel[i - 1] << ((i - 12 - 1) * 5));
}
}
reg32_1 |= ((length -1) << ADC_SQR1_L_LSB);
reg32_1 |= ((length - 1) << ADC_SQR1_L_LSB);
ADC_SQR1(adc) = reg32_1;
ADC_SQR2(adc) = reg32_2;

View File

@@ -39,7 +39,7 @@ Example 1: Push-pull digital output actions on ports C2 and C9
@code
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_2_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, GPIO2 | GPIO9);
GPIO_CNF_OUTPUT_PUSHPULL, GPIO2 | GPIO9);
gpio_set(GPIOC, GPIO2 | GPIO9);
gpio_clear(GPIOC, GPIO2);
gpio_toggle(GPIOC, GPIO2 | GPIO9);

View File

@@ -40,7 +40,7 @@ void pwr_set_vos_scale(vos_scale_t scale)
{
if (scale == SCALE1) {
PWR_CR |= PWR_CR_VOS;
} else if (scale == SCALE2) {
} else if (scale == SCALE2) {
PWR_CR &= PWR_CR_VOS;
}
}