Commit 8f56912f authored by oharboe's avatar oharboe
Browse files

Zach Welch <> add TAP_SCAN_BYTES macro

git-svn-id: svn:// b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 39f76220
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment