From: <oh...@ma...> - 2009-04-26 22:02:18
|
Author: oharboe Date: 2009-04-26 22:02:15 +0200 (Sun, 26 Apr 2009) New Revision: 1529 Modified: trunk/src/jtag/jtag.h Log: Zach Welch <zw...@su...> add TAP_SCAN_BYTES macro Modified: trunk/src/jtag/jtag.h =================================================================== --- trunk/src/jtag/jtag.h 2009-04-25 02:53:07 UTC (rev 1528) +++ trunk/src/jtag/jtag.h 2009-04-26 20:02:15 UTC (rev 1529) @@ -237,7 +237,7 @@ 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 { |