NAND-FSMC. Added smart waiting based on DMA interrupt