Subversion Repositories pentevo

Rev

Rev 129 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed | ?url?

  1. #ifndef DEPACKER_DIRTY_H
  2. #define DEPACKER_DIRTY_H
  3.  
  4. /**
  5.  * @file
  6.  * @brief Depack and load fpga configuration.
  7.  * @author http://www.nedopc.com
  8.  *
  9.  * Depacker use MegaLZ without any checks.
  10.  */
  11.  
  12. /** Size of output buffer */
  13. #define DBSIZE 2048
  14. /** Mask of output buffer */
  15. #define DBMASK 2047
  16.  
  17. /** Get next byte. */
  18. #define NEXT_BYTE (pgm_read_byte_far(curFpga++))
  19.  
  20. /** Actual depacker, 8bit-oriented and without any checks. */
  21. void  depacker_dirty(void);
  22.  
  23. /** */
  24. UBYTE get_bits_dirty(UBYTE numbits);
  25. WORD get_bigdisp_dirty(void);
  26.  
  27. /** */
  28. void put_byte(UBYTE);
  29. void repeat(WORD,UBYTE);
  30.  
  31. #endif
  32.  
  33.