[Style] A small coding style fixing session.
This commit is contained in:
@@ -778,7 +778,7 @@ Line Devices only
|
||||
|
||||
@{*/
|
||||
/* ADC2_ETRGREG_REMAP: */
|
||||
/**
|
||||
/**
|
||||
* ADC2 external trigger regulator conversion remapping
|
||||
* (only low-, medium-, high- and XL-density devices)
|
||||
*/
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user