diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-02-05 12:03:04 +0000 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-02-06 11:00:36 +0000 |
commit | 374127301ec1d72033b9d573b72c7abdfd61990d (patch) | |
tree | b56f5f4bba1718f9ac482d1fabdff18f5d170196 /src/target/dsp5680xx.c | |
parent | de0130a0aad83c1ef692ee4d68ab996a8668424d (diff) |
build: cleanup src/target directory
Change-Id: Ia055b6d2b5f6449a38afd0539a8c66e7d7e0c059
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/430
Tested-by: jenkins
Diffstat (limited to 'src/target/dsp5680xx.c')
-rw-r--r-- | src/target/dsp5680xx.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/target/dsp5680xx.c b/src/target/dsp5680xx.c index 7b43313e..5a25846d 100644 --- a/src/target/dsp5680xx.c +++ b/src/target/dsp5680xx.c @@ -20,6 +20,7 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -1542,7 +1543,7 @@ static int perl_crc(uint8_t *buff8, uint32_t word_count) data = (buff8[2 * i] | (buff8[2 * i + 1] << 8)); fbmisr = (checksum & 2) >> 1 ^ (checksum & 4) >> 2 ^ (checksum & 16) - >> 4 ^ (checksum & 0x8000) >> 15; + >> 4 ^ (checksum & 0x8000) >> 15; checksum = (data ^ ((checksum << 1) | fbmisr)); } i--; @@ -1978,13 +1979,13 @@ int dsp5680xx_f_erase(struct target *target, int first, int last) */ const uint16_t pgm_write_pflash[] = { 0x8A46, 0x0013, 0x807D, 0xE700, - 0xE700, 0x8A44, 0xFFFE, 0x017B, - 0xE700, 0xF514, 0x8563, 0x8646, - 0x0020, 0x0014, 0x8646, 0x0080, - 0x0013, 0xF042, 0x0013, 0x8B40, - 0x2004, 0x8246, 0x0013, 0x0020, - 0xA967, 0x8B40, 0x1065, 0x8246, - 0x0013, 0x0010, 0xA961 + 0xE700, 0x8A44, 0xFFFE, 0x017B, + 0xE700, 0xF514, 0x8563, 0x8646, + 0x0020, 0x0014, 0x8646, 0x0080, + 0x0013, 0xF042, 0x0013, 0x8B40, + 0x2004, 0x8246, 0x0013, 0x0020, + 0xA967, 0x8B40, 0x1065, 0x8246, + 0x0013, 0x0010, 0xA961 }; const uint32_t pgm_write_pflash_length = 31; |