Subversion Repositories ngs

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

  1. #ifndef _FLASH_H
  2. #define _FLASH_H
  3.  
  4.  
  5.  
  6. //operation modes
  7. #define ERASE_SECTOR (1)
  8. #define ERASE_BLOCK  (1)
  9. #define ERASE_ALL    (2)
  10. #define PROGRAM      (3)
  11. #define READ         (4)
  12.  
  13. // max flash size
  14. #define MAX_SIZE (524288)
  15.  
  16. // delta for addr printing
  17. #define ADDR_DELTA (1024)
  18.  
  19.  
  20.  
  21. int do_flash(int mode, char * filename, int start_address, int length);
  22.  
  23.  
  24.  
  25. void print_cur_addr(char * format_string, unsigned int cur_addr);
  26.  
  27.  
  28. #endif
  29.