Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1.  
  2. /* Device flags */
  3. #define DF_NO_MUL    0x00000001
  4. #define DF_NO_JMP    0x00000002 // No JMP, CALL
  5. #define DF_NO_XREG   0x00000004 // No X register
  6. #define DF_NO_YREG   0x00000008 // No Y register
  7. #define DF_TINY1X    0x00000010 /* AT90S1200, ATtiny10-12  set: No ADIW, SBIW,
  8.                                    IJMP, ICALL, LDD, STD, LDS, STS, PUSH, POP */
  9. #define DF_NO_LPM    0x00000020 // No LPM instruction
  10. #define DF_NO_LPM_X  0x00000040 // No LPM Rd,Z or LPM Rd,Z+ instruction
  11. #define DF_NO_ELPM   0x00000080 // No ELPM instruction
  12. #define DF_NO_ELPM_X 0x00000100 // No ELPM Rd,Z or LPM Rd,Z+ instruction
  13. #define DF_NO_SPM    0x00000200 // No SPM instruction
  14. #define DF_NO_ESPM   0x00000400 // No ESPM instruction
  15. #define DF_NO_MOVW   0x00000800 // No MOVW instruction
  16. #define DF_NO_BREAK  0x00001000 // No BREAK instruction
  17. #define DF_NO_EICALL 0x00002000 // No EICALL instruction
  18. #define DF_NO_EIJMP  0x00004000 // No EIJMP instruction
  19.  
  20. struct device
  21.         {
  22.         char *name;
  23.         int flash_size;
  24.         int ram_start;
  25.         int ram_size;
  26.         int eeprom_size;
  27.         int flag;
  28.         };
  29.  
  30. /* device.c */
  31. struct device *get_device(struct prog_info *pi,char *name);
  32. int predef_dev(struct prog_info *pi);
  33. void list_devices();
  34.