From a318f32b310eac95a4a208a0f25fb1c39afa22f5 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 20 Feb 2011 19:18:06 +0000 Subject: Update board driver common APIs to use uint_reg_t. --- LUFA/Common/Common.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'LUFA/Common') diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index 4efa27ecb..a62cc7e7e 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,11 @@ #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; #warning The UC3B architecture support is currently experimental and incomplete! #endif -- cgit v1.2.3