Start porting the USB core to the AVR32 UC3B.
This commit is contained in:
parent
e11fddfe66
commit
0e6d5cf5b4
19 changed files with 354 additions and 122 deletions
|
@ -47,7 +47,11 @@
|
|||
#define __CONFIGDESCRIPTOR_H__
|
||||
|
||||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
#if defined(__AVR32__)
|
||||
#include <avr32/io.h>
|
||||
#elif defined(__AVR__)
|
||||
#include <avr/io.h>
|
||||
#endif
|
||||
|
||||
#include "../../../Common/Common.h"
|
||||
#include "../HighLevel/USBMode.h"
|
||||
|
|
|
@ -50,7 +50,11 @@
|
|||
#define __USBEVENTS_H__
|
||||
|
||||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
#if defined(__AVR32__)
|
||||
#include <avr32/io.h>
|
||||
#elif defined(__AVR__)
|
||||
#include <avr/io.h>
|
||||
#endif
|
||||
|
||||
#include "../../../Common/Common.h"
|
||||
#include "USBMode.h"
|
||||
|
|
|
@ -41,9 +41,16 @@
|
|||
#define __USBDESCRIPTORS_H__
|
||||
|
||||
/* Includes: */
|
||||
#include <avr/pgmspace.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#if defined(__AVR32__)
|
||||
#include <avr32/io.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#elif defined(__AVR__)
|
||||
#include <avr/pgmspace.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
|
||||
#include "../../../Common/Common.h"
|
||||
#include "USBMode.h"
|
||||
|
|
|
@ -32,8 +32,14 @@
|
|||
#define __USBINTERRUPT_H__
|
||||
|
||||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
#include <stdbool.h>
|
||||
#if defined(__AVR32__)
|
||||
#include <avr32/io.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#elif defined(__AVR__)
|
||||
#include <avr/io.h>
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#include "../../../Common/Common.h"
|
||||
#include "../LowLevel/LowLevel.h"
|
||||
|
|
|
@ -69,6 +69,11 @@
|
|||
* (i.e. AT90USBXXX7) when defined.
|
||||
*/
|
||||
#define USB_SERIES_7_AVR
|
||||
|
||||
/** Indicates that the target AVR microcontroller belongs to the Series UC3B USB controller
|
||||
* (i.e. AT32UC3BXXXX) when defined.
|
||||
*/
|
||||
#define USB_SERIES_UC3B_AVR
|
||||
|
||||
/** Indicates that the target AVR microcontroller and compilation settings allow for the
|
||||
* target to be configured in USB Device mode when defined.
|
||||
|
@ -95,9 +100,11 @@
|
|||
#define USB_SERIES_6_AVR
|
||||
#elif (defined(__AVR_AT90USB647__) || defined(__AVR_AT90USB1287__))
|
||||
#define USB_SERIES_7_AVR
|
||||
#elif (defined(__AVR32_UC3B0256__))
|
||||
#define USB_SERIES_UC3B_AVR
|
||||
#endif
|
||||
|
||||
#if !defined(USB_SERIES_7_AVR)
|
||||
#if !defined(USB_SERIES_7_AVR) && !defined(USB_SERIES_UC3B_AVR)
|
||||
#if defined(USB_HOST_ONLY)
|
||||
#error USB_HOST_ONLY is not available for the currently selected USB AVR model.
|
||||
#endif
|
||||
|
|
|
@ -32,9 +32,15 @@
|
|||
#define __USBTASK_H__
|
||||
|
||||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <stdbool.h>
|
||||
#if defined(__AVR32__)
|
||||
#include <avr32/io.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#elif defined(__AVR__)
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#include "../LowLevel/LowLevel.h"
|
||||
#include "Events.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue