/* Disbles or disables the SMC NAND ECC feature.  */
void SMC_DisableNANDECC(SMC_BANK_NAND_T bank)
/* Disbles or disables the SMC NAND ECC feature.  */
void SMC_DisableNANDECC(SMC_BANK_NAND_T bank)
{
    if (bank == SMC_BANK2_NAND)
    {
        SMC_Bank2->CTRL2_B.ECCEN = BIT_RESET;
    }
    else if (bank == SMC_BANK3_NAND)
    {
        SMC_Bank3->CTRL3_B.ECCEN = BIT_RESET;
    }
}