Skip to content
Snippets Groups Projects
Commit ecb57f69 authored by Stefan Roese's avatar Stefan Roese Committed by Tom Rini
Browse files

lib/crc16.c: Rename cyg_crc16() to crc16_ccitt() and add crc start value


The original name of this function is unclear. This patch renames this
CRC16 function to crc16_ccitt() matching its name with its
implementation.

To make the usage of this function more flexible, lets add the CRC start
value as parameter to this function. This way it can be used by other
functions requiring different start values than 0 as well.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 7109157f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment