/* Disable the SMC Bank2 or Bank3 NAND ECC feature.  */
void SMC_DisableNANDECC(SMC_BANK_NAND_T bank)
/* Disable the SMC Bank2 or Bank3 NAND ECC feature.  */
void SMC_DisableNANDECC(SMC_BANK_NAND_T bank)
{
    if (bank == SMC_BANK2_NAND)
    {
        SMC_Bank2->CTRL2 &= 0x000FFFBF;
    }
    else
    {
        SMC_Bank3->CTRL3 &= 0x000FFFBF;
    }
}