C.1 Reference CRC Calculation Routine
To run a stand-alone test of the reference implementation of CRC computation, follow these steps:
- Create a CCS project with an empty main.c file.
- Copy the contents of example_c1.c (Example 1) to the main.c file.
- Create a crc_tbl.h file in the project, and copy the contents of Example 29 to that file.
- Build and test the project. You should see the following printf() statement results:
CRC_32_PRIME: 74b85ade
CRC_8_PRIME: 10
CRC16_802_15_4: b83d