add nand flash function file