Searched refs:crc (Results 1 – 1 of 1) sorted by relevance
/mcuboot-3.4.0/boot/boot_serial/src/ |
D | boot_serial.c | 1021 uint16_t crc; in boot_serial_output() local 1025 char buf[BOOT_SERIAL_OUT_MAX + sizeof(*bs_hdr) + sizeof(crc) + sizeof(totlen)]; in boot_serial_output() 1037 crc = crc16_itu_t(CRC16_INITIAL_CRC, (uint8_t *)bs_hdr, sizeof(*bs_hdr)); in boot_serial_output() 1038 crc = crc16_itu_t(crc, data, len); in boot_serial_output() 1041 crc = ~esp_crc16_be(~CRC16_INITIAL_CRC, (uint8_t *)bs_hdr, sizeof(*bs_hdr)); in boot_serial_output() 1042 crc = ~esp_crc16_be(~crc, (uint8_t *)data, len); in boot_serial_output() 1044 crc = crc16_ccitt(CRC16_INITIAL_CRC, bs_hdr, sizeof(*bs_hdr)); in boot_serial_output() 1045 crc = crc16_ccitt(crc, data, len); in boot_serial_output() 1047 crc = htons(crc); in boot_serial_output() 1049 totlen = len + sizeof(*bs_hdr) + sizeof(crc); in boot_serial_output() [all …]
|