interrupt function's return type, add flash.c and flash.h