forked from mirror/qmk_firmware
Added start of a port of the core USB driver code to the AVR32 UC3B architecture.
This commit is contained in:
@@ -62,8 +62,11 @@
|
||||
/* Public Interface - May be used in end-application: */
|
||||
/* Macros: */
|
||||
/** Selects the Atmel 8-bit AVR (AT90USB* and ATMEGA*U* chips) architecture. */
|
||||
#define ARCH_AVR8 1
|
||||
#define ARCH_AVR8 0
|
||||
|
||||
/** Selects the Atmel 32-bit UC3B AVR (AT32UC3B* chips) architecture. */
|
||||
#define ARCH_UC3B 1
|
||||
|
||||
#if !defined(__DOXYGEN__)
|
||||
#define ARCH_ ARCH_AVR8
|
||||
|
||||
|
||||
@@ -144,6 +144,9 @@
|
||||
/** Selects the Sparkfun ATMEGA8U2 specific board drivers, including the driver for the board LEDs. */
|
||||
#define BOARD_SPARKFUN8U2 26
|
||||
|
||||
/** Selects the Atmel EVK1101 specific board drivers, including the Button, Joystick and LED drivers. */
|
||||
#define BOARD_EVK1101 27
|
||||
|
||||
#if !defined(__DOXYGEN__)
|
||||
#define BOARD_ BOARD_NONE
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "Architectures.h"
|
||||
#include "Attributes.h"
|
||||
@@ -81,6 +82,16 @@
|
||||
#include <avr/boot.h>
|
||||
#include <util/atomic.h>
|
||||
#include <util/delay.h>
|
||||
|
||||
typedef uint8_t uintN_t;
|
||||
typedef int8_t intN_t;
|
||||
#elif (ARCH == ARCH_UC3B)
|
||||
#include <avr32/io.h>
|
||||
|
||||
typedef uint32_t uintN_t;
|
||||
typedef int32_t intN_t;
|
||||
|
||||
#warning The UC3B architecture support is currently experimental and incomplete!
|
||||
#endif
|
||||
|
||||
/* Public Interface - May be used in end-application: */
|
||||
|
||||
Reference in New Issue
Block a user