|
|
@ -82,6 +82,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
/* Public Interface - May be used in end-application: */
|
|
|
|
/* Public Interface - May be used in end-application: */
|
|
|
|
/* Macros: */
|
|
|
|
/* Macros: */
|
|
|
|
|
|
|
|
/** \name USB Controller Option Masks */
|
|
|
|
|
|
|
|
//@{
|
|
|
|
|
|
|
|
/** Selects one of the system's main clock oscillators as the input clock to the USB Generic Clock source
|
|
|
|
|
|
|
|
* generation module. This indicates that an external oscillator should be used directly instead of an
|
|
|
|
|
|
|
|
* internal PLL clock source.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define USB_OPT_GCLK_SRC_OSC (1 << 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Selects one of the system's PLL oscillators as the input clock to the USB Generic Clock source
|
|
|
|
|
|
|
|
* generation module. This indicates that one of the device's PLL outputs should be used instead of an
|
|
|
|
|
|
|
|
* external oscillator source.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define USB_OPT_GCLK_SRC_PLL (0 << 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Selects PLL or External Oscillator 0 as the USB Generic Clock source module input clock. */
|
|
|
|
|
|
|
|
#define USB_OPT_GCLK_CHANNEL_0 (1 << 2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Selects PLL or External Oscillator 1 as the USB Generic Clock source module input clock. */
|
|
|
|
|
|
|
|
#define USB_OPT_GCLK_CHANNEL_1 (0 << 2)
|
|
|
|
|
|
|
|
//@}
|
|
|
|
|
|
|
|
|
|
|
|
/** \name Endpoint/Pipe Type Masks */
|
|
|
|
/** \name Endpoint/Pipe Type Masks */
|
|
|
|
//@{
|
|
|
|
//@{
|
|
|
|
/** Mask for a CONTROL type endpoint or pipe.
|
|
|
|
/** Mask for a CONTROL type endpoint or pipe.
|
|
|
@ -272,6 +293,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
/* Private Interface - For use in library only: */
|
|
|
|
/* Private Interface - For use in library only: */
|
|
|
|
#if !defined(__DOXYGEN__)
|
|
|
|
#if !defined(__DOXYGEN__)
|
|
|
|
|
|
|
|
/* Macros: */
|
|
|
|
|
|
|
|
#define USB_GCLK_USBB_INDEX 3
|
|
|
|
|
|
|
|
|
|
|
|
/* Function Prototypes: */
|
|
|
|
/* Function Prototypes: */
|
|
|
|
#if defined(__INCLUDE_FROM_USB_CONTROLLER_C)
|
|
|
|
#if defined(__INCLUDE_FROM_USB_CONTROLLER_C)
|
|
|
|
#if defined(USB_CAN_BE_DEVICE)
|
|
|
|
#if defined(USB_CAN_BE_DEVICE)
|
|
|
|