anchao opened a new pull request, #16147: URL: https://github.com/apache/nuttx/pull/16147
## Summary libs/libc/crc16: set default crc16 catalogue from CRC-16/XMODEM to CRC-16/IBM 1. Set default crc16 catalogue to CRC-16/IBM Compatible CRC16 with Linux Kernel: https://github.com/torvalds/linux/blob/master/lib/crc16.c ``` - ARC, CRC-16, CRC-16/LHA, CRC-IBM poly: 0x8005 (0xA001) initial seed: 0x0000, xor output: 0x0000 : width=16 : poly=0x8005 : init=0x0000 : refin=true : refout=true : xorout=0x0000 : check=0xbb3d : residue=0x0000 : name="CRC-16/ARC" ``` https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-arc 2. Rename the previous crc algorithm API to crc16xmodem crc16 -> crc16xmodem crc16part -> crc16xmodempart ``` - CRC-16/ACORN, CRC-16/LTE, CRC-16/V-41-MSB, XMODEM, ZMODEM poly: 0x1021 initial seed: 0x0000, xor output: 0x0000 : width=16 : poly=0x1021 : init=0x0000 : refin=false : refout=false : xorout=0x0000 : check=0x31c3 : residue=0x0000 : name="CRC-16/XMODEM" ``` https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-xmodem Signed-off-by: chao an <anchao.arc...@bytedance.com> ## Impact N/A ## Testing crc16 test via rpmsg uart -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org