diff options
Diffstat (limited to 'src/sam3/internal.h')
-rw-r--r-- | src/sam3/internal.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sam3/internal.h b/src/sam3/internal.h index 8246d7a4..d90dda0b 100644 --- a/src/sam3/internal.h +++ b/src/sam3/internal.h @@ -1,8 +1,15 @@ #ifndef __SAM3_INTERNAL_H #define __SAM3_INTERNAL_H -// Local definitions for sam3 code +// Local definitions for sam3/sam4 code #include <stdint.h> // uint32_t +#include "autoconf.h" // CONFIG_MACH_SAM3X8E + +#if CONFIG_MACH_SAM3X8E +#include "sam3x8e.h" +#elif CONFIG_MACH_SAM4E8E +#include "sam4e.h" +#endif #define GPIO(PORT, NUM) (((PORT)-'A') * 32 + (NUM)) #define GPIO2PORT(PIN) ((PIN) / 32) |