minor stylecheck cleanups
This commit is contained in:
parent
57c7ba3283
commit
ba9cb7dc5d
|
@ -165,7 +165,7 @@ static inline uint32_t __cm_atomic_set(uint32_t *val)
|
|||
}
|
||||
|
||||
#define __CM_SAVER(state) \
|
||||
__val = state, \
|
||||
__val = (state), \
|
||||
__save __attribute__((__cleanup__(__cm_atomic_set))) = \
|
||||
__cm_atomic_set(&__val)
|
||||
|
||||
|
|
|
@ -164,8 +164,8 @@ Status bit polling is used to detect end of operation.
|
|||
|
||||
void flash_program_word(uint32_t address, uint32_t data)
|
||||
{
|
||||
flash_program_half_word(address, (uint16_t)data);
|
||||
flash_program_half_word(address+2, (uint16_t)(data>>16));
|
||||
flash_program_half_word(address, (uint16_t)data);
|
||||
flash_program_half_word(address+2, (uint16_t)(data>>16));
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
|
@ -34,10 +34,10 @@
|
|||
#ifdef ER_DEBUG
|
||||
#include <stdio.h>
|
||||
#define ER_DPRINTF(fmt, ...) \
|
||||
do { printf(fmt, ## __VA_ARGS__); } while (0)
|
||||
do { printf(fmt, ## __VA_ARGS__); } while (0)
|
||||
#else
|
||||
#define ER_DPRINTF(fmt, ...) \
|
||||
do { } while (0)
|
||||
do { } while (0)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue