summaryrefslogtreecommitdiffstats
path: root/tools/telechips.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-09-30 12:49:43 +0000
committerDave Chapman <dave@dchapman.com>2007-09-30 12:49:43 +0000
commit41541c5c31c5cd4f1a6dbbd7354046cfd5cfa13f (patch)
treea57742b5bb57f6b9d5cd5700601fcf9e22ebebf7 /tools/telechips.h
parent0f5d9f9125e53ae62175469e78151ca4cb0be79a (diff)
downloadrockbox-41541c5c31c5cd4f1a6dbbd7354046cfd5cfa13f.tar.gz
rockbox-41541c5c31c5cd4f1a6dbbd7354046cfd5cfa13f.zip
Add support for the generic Telechips firmware format checksums - use -tcc=sum if the header just contains a single checksum, or -tcc=crc if the header contains two 32-bit CRCs. Credit goes to Hein-Pieter van Braam for his work on identifying the (reverse) CRC32 algorithm used when calculating the two CRCs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14917 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/telechips.h')
-rw-r--r--tools/telechips.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/telechips.h b/tools/telechips.h
new file mode 100644
index 0000000000..7854da0294
--- /dev/null
+++ b/tools/telechips.h
@@ -0,0 +1,26 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2007 Dave Chapman
+ *
+ * All files in this archive are subject to the GNU General Public License.
+ * See the file COPYING in the source tree root for full license agreement.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+
+#ifndef _TELECHIPS_H
+#define _TELECHIPS_H
+
+void telechips_encode_sum(unsigned char* buf, int length);
+void telechips_encode_crc(unsigned char* buf, int length);
+
+#endif