Skip to content

Commit

Permalink
Make it usable from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed Sep 2, 2024
1 parent d500ec1 commit aa67a73
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/common/crc.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

struct sbuf_s;

uint16_t crc16_ccitt(uint16_t crc, unsigned char a);
Expand All @@ -35,4 +39,9 @@ void crc8_xor_sbuf_append(struct sbuf_s *dst, uint8_t *start);
uint8_t crc8(uint8_t crc, uint8_t a);
uint8_t crc8_update(uint8_t crc, const void *data, uint32_t length);

uint8_t crc8_sum_update(uint8_t crc, const void *data, uint32_t length);
uint8_t crc8_sum_update(uint8_t crc, const void *data, uint32_t length);


#ifdef __cplusplus
}
#endif

0 comments on commit aa67a73

Please sign in to comment.