X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/cad5e9ffca70f4f5d3b486049088fd77dfa8f0ca..29ba88cffd4198b02e8ca04c31aed2c175c5502e:/LUFA/Common/Common.h?ds=inline diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index 4efa27ecb..355391b2a 100644 --- a/LUFA/Common/Common.h +++ b/LUFA/Common/Common.h @@ -74,7 +74,10 @@ #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 @@ -83,13 +86,25 @@ #include #include - typedef uint8_t uintN_t; - typedef int8_t intN_t; + typedef uint8_t uint_reg_t; #elif (ARCH == ARCH_UC3B) #include - typedef uint32_t uintN_t; - typedef int32_t intN_t; + 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