projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add drivers for the EVK1101 - begin full port to the AVR32 UC3B line of AVRs.
[pub/lufa.git]
/
LUFA
/
Common
/
Common.h
diff --git
a/LUFA/Common/Common.h
b/LUFA/Common/Common.h
index
2ddb58c
..
4052480
100644
(file)
--- a/
LUFA/Common/Common.h
+++ b/
LUFA/Common/Common.h
@@
-56,8
+56,17
@@
#define __COMMON_H__
\r
\r
/* Includes: */
\r
#define __COMMON_H__
\r
\r
/* Includes: */
\r
- #include <avr/io.h>
\r
-
\r
+ #if defined(__AVR32__)
\r
+ #include <avr32/io.h>
\r
+ #include <stdint.h>
\r
+
\r
+ #include "Atomic.h"
\r
+
\r
+ #define PROGMEM
\r
+ #else
\r
+ #include <avr/io.h>
\r
+ #endif
\r
+
\r
#include "FunctionAttributes.h"
\r
#include "BoardTypes.h"
\r
\r
#include "FunctionAttributes.h"
\r
#include "BoardTypes.h"
\r
\r
@@
-179,6
+188,14
@@
}
\r
}
\r
\r
}
\r
}
\r
\r
+ /* Type Defines: */
\r
+ #if defined(__AVR32__)
\r
+ typedef uint32_t uintN_t;
\r
+ typedef int32_t intN_t;
\r
+ #else
\r
+ typedef uint8_t uintN_t;
\r
+ typedef int8_t intN_t;
\r
+ #endif
\r
#endif
\r
\r
/** @} */
\r
#endif
\r
\r
/** @} */
\r