forked from auracaster/openocd
Clean up many C99 integer types format specifiers
This eliminates most of the warnings reported when building for arm-none-eabi (newlib). Hsiangkai, there're many similar warnings left in your nds32 files, I didn't have the nerve to clean them all, probably you could pick it up. Change-Id: Id3bbe2ed2e3f1396290e55bea4c45068165a4810 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1674 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Spencer Oliver
parent
75b4cbe356
commit
f132fcf636
@@ -60,8 +60,8 @@
|
||||
#define DP_SELECT 0x8 /* JTAG: r/w; SWD: write */
|
||||
#define DP_RDBUFF 0xC /* read-only */
|
||||
|
||||
#define WCR_TO_TRN(wcr) (1 + (3 & ((wcr)) >> 8)) /* 1..4 clocks */
|
||||
#define WCR_TO_PRESCALE(wcr) (7 & ((wcr))) /* impl defined */
|
||||
#define WCR_TO_TRN(wcr) ((uint32_t)(1 + (3 & ((wcr)) >> 8))) /* 1..4 clocks */
|
||||
#define WCR_TO_PRESCALE(wcr) ((uint32_t)(7 & ((wcr)))) /* impl defined */
|
||||
|
||||
/* Fields of the DP's AP ABORT register */
|
||||
#define DAPABORT (1 << 0)
|
||||
|
||||
Reference in New Issue
Block a user