swd: Improve parity calculation and move it to types.h
commit36772a7ed0c31a99c721d1ea9131a8ecc56a263d
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 16 Feb 2014 23:27:09 +0000 (17 00:27 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 28 Jun 2014 09:27:19 +0000 (28 09:27 +0000)
treefe43ec6bfe5fa5a15f1733410d56b8e0c9db456c
parent0e95ec4070258649f2638780581f61a1082d171c
swd: Improve parity calculation and move it to types.h

It could be reused by SWD drivers and in other places.

Change-Id: Ieed0cf70c111a73d3a42ed59f46a0cdd177a73d5
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1957
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/helper/types.h
src/jtag/swd.h