/* Calculate the CRC value of a 8-bit data buffer.  */
static int32_t CRC_WriteData8(const uint8_t au8Data[], uint32_t u32Len)
/* Calculate the CRC value of a 8-bit data buffer.  */
static int32_t CRC_WriteData8(const uint8_t au8Data[], uint32_t u32Len)
{
    uint32_t i;
    int32_t i32Ret = LL_ERR_INVD_PARAM;
    const uint32_t u32DataAddr = CRC_DATA_ADDR;
    if ((au8Data != NULL) && (u32Len != 0UL)) {
        for (i = 0UL; i < u32Len; i++) {
            RW_MEM8(u32DataAddr) = au8Data[i];
        }
        i32Ret = LL_OK;
    }
    return i32Ret;
}