Microchip® Advanced Software Framework

conf_usb.h File Reference

USB configuration file.

This file contains the possible external configuration of the USB.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "board.h"
#include "print_funcs.h"
#include "usb_ids.h"

Macros

#define EP_AUDIO_IN   6
 
#define EP_AUDIO_OUT   5
 
#define EP_KBD_IN   1
 
#define LOG_STR(str)
 Debug trace macro. More...
 
#define NB_ENDPOINTS   4
 
#define TIMER_USB_STREAM_MONITOR   700
 Period (in ms) of the polling of the buffers monitoring. More...
 
#define USB_DEVICE_FEATURE   true
 ENABLE to activate the device software framework support. More...
 
#define USB_HOST_FEATURE   false
 ENABLE to activate the host software framework support. More...
 
#define USB_INT_LEVEL   AVR32_INTC_INT0
 USB interrupt priority level. More...
 
#define Usb_reset_action()
 
#define Usb_resume_action()
 
#define USB_RESYNC_AUDIO_STREAM   true
 ENABLE to activate the USB audio resynchronization. More...
 
#define Usb_set_configuration_action()   Usb_enable_sof_interrupt()
 
#define Usb_sof_action()   usb_sof_action()
 
#define USB_STREAM_BUFFER_NUMBER   16
 Number of buffers used in the USB stream FIFO. More...
 
#define USB_STREAM_BUFFER_SIZE   256
 Size of a buffer (in bytes) used in the USB stream FIFO. More...
 
#define USB_STREAM_RESYNC_PPM_STEPS   10
 Steps in PPM for the resynchronization. More...
 
#define Usb_suspend_action()
 
#define Usb_vbus_off_action()
 
#define Usb_vbus_on_action()
 
#define Usb_wake_up_action()
 
#define USE_USB_PADS_REGULATOR   DISABLE
 Enable the internal regulator for USB pads. More...
 

Functions

void usb_sof_action (void)
 usb_sof_action More...
 
void usb_suspend_action (void)