/* Specifies the operation which is operated after check error occurred.  */
void SRAM_SetErrorMode(uint32_t u32SramSel, uint32_t u32ErrMode)
/* Specifies the operation which is operated after check error occurred.  */
void SRAM_SetErrorMode(uint32_t u32SramSel, uint32_t u32ErrMode)
{
    DDL_ASSERT(IS_SRAM_SEL(u32SramSel));
    DDL_ASSERT(IS_SRAM_ERR_MD(u32ErrMode));
    DDL_ASSERT(IS_SRAM_CKPR_UNLOCK());
    if ((u32SramSel & (SRAM_SRAM123 | SRAM_SRAMH)) != 0U) {
        WRITE_REG32(bCM_SRAMC->CKCR_b.PYOAD, u32ErrMode);
    }
    if ((u32SramSel & SRAM_SRAM4) != 0U) {
        WRITE_REG32(bCM_SRAMC->CKCR_b.ECCOAD, u32ErrMode);
    }
    if ((u32SramSel & SRAM_SRAMB) != 0U) {
        WRITE_REG32(bCM_SRAMC->CKCR_b.BECCOAD, u32ErrMode);
    }
}