[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

@@ -53,11 +53,11 @@
#define MMIO64(addr) (*(volatile uint64_t *)(addr))
/* Generic bit-band I/O accessor functions */
#define BBIO_SRAM(addr,bit) \
MMIO8(((addr) & 0x0FFFFF) * 32 | 0x22000000 + (bit) * 4 )
#define BBIO_SRAM(addr, bit) \
MMIO8(((addr) & 0x0FFFFF) * 32 | 0x22000000 + (bit) * 4)
#define BBIO_PERIPH(addr,bit) \
MMIO8(((addr) & 0x0FFFFF) * 32 | 0x42000000 + (bit) * 4 )
#define BBIO_PERIPH(addr, bit) \
MMIO8(((addr) & 0x0FFFFF) * 32 | 0x42000000 + (bit) * 4)
/* Generic bit definition */
#define BIT0 (1<<0)

View File

@@ -244,7 +244,7 @@ void gpio_unlock_commit(uint32_t gpioport, uint8_t gpios);
* by OR'ing then together.
*
* @return The level of the GPIO port. The pins not specified in gpios are
* masked to zero.
* masked to zero.
*/
static inline uint8_t gpio_read(uint32_t gpioport, uint8_t gpios)
{

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)