Skip to content

Commit

Permalink
Merge pull request #20527 from Teufelchen1/deprecate/crc16
Browse files Browse the repository at this point in the history
sys/checksum: Remove deprecated crc16_ccitt functions
  • Loading branch information
Teufelchen1 authored Apr 2, 2024
2 parents a9b9569 + 0503e61 commit 3c07ebc
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions sys/include/checksum/crc16_ccitt.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,40 +182,6 @@ static inline uint16_t crc16_ccitt_aug_update(uint16_t crc, const unsigned char
*/
uint16_t crc16_ccitt_aug_calc(const unsigned char *buf, size_t len);

/**
* @brief Update CRC16-CCITT
* @deprecated Use @ref crc16_ccitt_aug_update instead.
* Will be removed after 2023.01 release.
*
* @param[in] crc A start value for the CRC calculation, usually the
* return value of a previous call to
* crc16_ccitt_calc() or crc16_ccitt_update()
* @param[in] buf Start of the memory area to checksum
* @param[in] len Number of bytes to checksum
*
* @return Checksum of the specified memory area based on the
* given start value
*/
static inline uint16_t crc16_ccitt_update(uint16_t crc, const unsigned char *buf, size_t len)
{
return crc16_ccitt_false_update(crc, buf, len);
}

/**
* @brief Calculate CRC16-CCITT
* @deprecated Use @ref crc16_ccitt_aug_calc instead.
* Will be removed after 2023.01 release.
*
* @param[in] buf Start of the memory area to checksum
* @param[in] len Number of bytes to checksum
*
* @return Checksum of the specified memory area
*/
static inline uint16_t crc16_ccitt_calc(const unsigned char *buf, size_t len)
{
return crc16_ccitt_aug_calc(buf, len);
}

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 3c07ebc

Please sign in to comment.