[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

@@ -778,7 +778,7 @@ Line Devices only
@{*/
/* ADC2_ETRGREG_REMAP: */
/**
/**
* ADC2 external trigger regulator conversion remapping
* (only low-, medium-, high- and XL-density devices)
*/

View File

@@ -738,7 +738,7 @@ injected channels.
#define ADC_CCR_MULTI_INDEPENDENT (0x00 << 0)
/* Dual modes (ADC1 + ADC2) */
/**
/**
* Dual modes (ADC1 + ADC2) Combined regular simultaneous +
* injected simultaneous mode.
*/

View File

@@ -55,8 +55,9 @@ do { \
register uint16_t toggle_mask = GET_REG(REG) & (MSK); \
register uint16_t bit_selector; \
for (bit_selector = 1; bit_selector; bit_selector <<= 1) { \
if ((bit_selector & (BIT)) != 0) \
if ((bit_selector & (BIT)) != 0) { \
toggle_mask ^= bit_selector; \
} \
} \
SET_REG(REG, toggle_mask); \
} while (0)