/* Flash-r.c: To read the value writing in flash memory address from 1 to 65535. **To press 'q' to quit this program. Compiler: BC++ 3.1, Turbo C ++ 1.01(3.01) (free from http://community.borland.com/museum) Compile mode: Large Project: Flash-r.c ..\..\lib\7188el.lib Hordware: 7188E [05/Dec/2006] by Liam [July,13,2011] by Nicholas */ #include #include #include #include #include #include "..\..\lib\7188e.h" void main(void) { int data; unsigned e=0x9000,i=0; char c; while(i<65535) { FlashRead(e,i); Print("\r\nThe value which segment %u of Flash Member is %d",i,FlashRead(e,i)); i++; if (i%100==0) { Print("\r\nPress q to quit or any key to continue..."); c=Getch(); if ((c=='q') || (c=='Q')) return; } } }