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
This commit is contained in:
oharboe 2009-04-26 20:02:15 +00:00
parent 39f76220a8
commit 8f56912fc2
1 changed files with 1 additions and 1 deletions

View File

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