minor stylecheck cleanups

This commit is contained in:
Karl Palsson 2016-02-29 21:30:31 +00:00
parent 57c7ba3283
commit ba9cb7dc5d
3 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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));
}
/*---------------------------------------------------------------------------*/

View File

@ -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
/*