Re: [Openocd-development] [PATCH] add TAP_SCAN_BYTES macro (1 of 2)

2009-04-26 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] [PATCH] add TAP_SCAN_BYTES macro (1 of 2)

2009-04-26 Thread Zach Welch
On Sun, 2009-04-26 at 00:19 +, Martin Panter wrote: [snip] > >From your patch: > +/// @brief calculates number of bytes required to hold @a n TAP scan bits > +#define TAP_SCAN_BYTES(n)(((n) / 8) + !!((n) % 8)) > > Are you aware that in src/helper/binarybuffer.h there's a similar >

Re: [Openocd-development] [PATCH] add TAP_SCAN_BYTES macro (1 of 2)

2009-04-25 Thread Martin Panter
On 24/04/2009, Zach Welch wrote: > Hi all, > > The attached patch adds a literate macro for the calculation of the > number of bytes required to store a TAP scan chain given its bit count. > > This macro ensures this calculation will be done correctly in all > locations that it is required, th

Re: [Openocd-development] [PATCH] add TAP_SCAN_BYTES macro (1 of 2)

2009-04-24 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

[Openocd-development] [PATCH] add TAP_SCAN_BYTES macro (1 of 2)

2009-04-24 Thread Zach Welch
Hi all, The attached patch adds a literate macro for the calculation of the number of bytes required to store a TAP scan chain given its bit count. This macro ensures this calculation will be done correctly in all locations that it is required, though this patch simply changes the line of code i