mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-22 00:56:21 +03:00
Reformat spacing/comments in src/crc16.h
This commit is contained in:
31
src/crc16.h
31
src/crc16.h
@@ -5,30 +5,19 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Derived from CRC algorithm for JTAG ICE mkII, published in Atmel
|
||||
* Appnote AVR067. Converted from C++ to C.
|
||||
*/
|
||||
// Derived from CRC algorithm for JTAG ICE mkII, published in Atmel Appnote AVR067
|
||||
extern unsigned short crcsum(const unsigned char *message, unsigned long length, unsigned short crc);
|
||||
|
||||
extern unsigned short crcsum(const unsigned char* message,
|
||||
unsigned long length,
|
||||
unsigned short crc);
|
||||
/*
|
||||
* Verify that the last two bytes is a (LSB first) valid CRC of the
|
||||
* message.
|
||||
*/
|
||||
extern int crcverify(const unsigned char* message,
|
||||
unsigned long length);
|
||||
/*
|
||||
* Append a two byte CRC (LSB first) to message. length is size of
|
||||
* message excluding crc. Space for the CRC bytes must be allocated
|
||||
* in advance!
|
||||
*/
|
||||
extern void crcappend(unsigned char* message,
|
||||
unsigned long length);
|
||||
// Verify that the last two bytes is a (LSB first) valid CRC of the message
|
||||
extern int crcverify(const unsigned char *message, unsigned long length);
|
||||
|
||||
/*
|
||||
* Append a two byte CRC (LSB first) to message. length is size of message
|
||||
* excluding crc. Space for the CRC bytes must be allocated in advance!
|
||||
*/
|
||||
extern void crcappend(unsigned char *message, unsigned long length);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user