/* Computes the 32-bit CRC of a given buffer of data word(32-bit).  */
u32 CRC_CalcBlockCRC(u32 *buffer, u32 length)
/* Computes the 32-bit CRC of a given buffer of data word(32-bit).  */
u32 CRC_CalcBlockCRC(u32 *buffer, u32 length)
{
    u32 i;
    for (i = 0; i < length; i++) {
        CRC->DR = buffer[i];
    }
    return (CRC->DR);
}