X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/f3ec62b5c689d9c66b07a57df76ca83881ce3fe3..29ba88cffd4198b02e8ca04c31aed2c175c5502e:/LUFA/Common/Common.h diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index 114f566b2..355391b2a 100644 --- a/LUFA/Common/Common.h +++ b/LUFA/Common/Common.h @@ -67,13 +67,17 @@ #include #include #include + #include #include "Architectures.h" #include "Attributes.h" #include "BoardTypes.h" /* Architecture specific utility includes: */ - #if (ARCH == ARCH_AVR8) + #if defined(__DOXYGEN__) + /** Type define for an unsigned integer the same width as the selected architecture's machine register. */ + typedef MACHINE_REG_t uint_reg_t; + #elif (ARCH == ARCH_AVR8) #include #include #include @@ -81,6 +85,28 @@ #include #include #include + + typedef uint8_t uint_reg_t; + #elif (ARCH == ARCH_UC3B) + #include + + typedef uint32_t uint_reg_t; + + // TODO + #define EEMEM + #define PROGMEM const + #define ISR(Name) void Name (void) + #define ATOMIC_BLOCK(x) if (1) + #define ATOMIC_RESTORESTATE + #define pgm_read_byte(x) *x + #define eeprom_read_byte(x) *x + #define eeprom_update_byte(x, y) *x = y + #define eeprom_write_byte(x, y) *x = y + #define _delay_ms(x) + #define memcmp_P(...) memcmp(__VA_ARGS__) + #define memcpy_P(...) memcpy(__VA_ARGS__) + + #warning The UC3B architecture support is currently experimental and incomplete! #endif /* Public Interface - May be used in end-application: */