Zach Welch <zw@superlucidity.net> add TAP_SCAN_BYTES macro
git-svn-id: svn://svn.berlios.de/openocd/trunk@1529 b42882b7-edfa-0310-969c-e2dbd0fdcd60__archive__
parent
39f76220a8
commit
8f56912fc2
|
@ -237,7 +237,7 @@ struct scan_field_s;
|
|||
typedef int (*in_handler_t)(u8* in_value, void* priv, struct scan_field_s* field);
|
||||
|
||||
/// @brief calculates number of bytes required to hold @a n TAP scan bits
|
||||
#define TAP_SCAN_BYTES(n) (((n) / 8) + !!((n) % 8))
|
||||
#define TAP_SCAN_BYTES(n) CEIL(n, 8)
|
||||
|
||||
typedef struct scan_field_s
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue