Subversion Repositories pentevo

Rev

Rev 601 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _TYPES_H
  2. #define _TYPES_H
  3.  
  4. #include <inttypes.h>
  5. #include <avr/pgmspace.h>
  6. #include <avr/eeprom.h>
  7.  
  8. #define u8   uint8_t
  9. #define u16 uint16_t
  10. #define u32 uint32_t
  11. //#define s8    int8_t
  12. //#define s16  int16_t
  13. //#define s32  int32_t
  14.  
  15. #define PGMSTR(s) (__extension__({static const u8 __c[] PROGMEM = (s); &__c[0];}))
  16.  
  17. typedef void (*PBKHNDL)(u8);
  18. typedef void (*PITEMHNDL)(void);
  19.  
  20. #endif
  21.