/* Computes the 32-bit CRC of a given buffer of data word(32-bit).  */
uint32_t CRC_CalculateBlockCRC(uint32_t *buf, uint32_t bufLen)
/* Computes the 32-bit CRC of a given buffer of data word(32-bit).  */
uint32_t CRC_CalculateBlockCRC(uint32_t *buf, uint32_t bufLen)
{
    while (bufLen--)
    {
        CRC->DATA = *buf++;
    }
    return CRC->DATA;
}