/******************************************************************************

    USB Configuration Header
    
This file contains definitions used to configure the USB FW Stack.

 * Filename:        usb_config.c
 * Dependancies:    TBD
 * Processor:       TBD
 * Hardware:        TBD
 * Assembler:       TBD
 * Linker:          TBD
 * Company:         Microchip Technology, Inc.

Software License Agreement

The software supplied herewith by Microchip Technology Incorporated
(the “Company”) for its PICmicro® Microcontroller is intended and
supplied to you, the Company’s customer, for use solely and
exclusively on Microchip PICmicro Microcontroller products. The
software is owned by the Company and/or its supplier, and is
protected under applicable copyright laws. All rights are reserved.
Any use in violation of the foregoing restrictions may subject the
user to criminal sanctions under applicable laws, as well as to
civil liability for the breach of the terms and conditions of this
license.

THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES,
WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

*******************************************************************************/

#include <p32xxxx.h>
#include "plib.h"

#define USB_SUPPORT_HOST

#define NUM_TPL_ENTRIES     1

//#define DEBUG_MODE

// These values need to be set somehow by the user.

#define USB_PING_PONG_MODE  USB_PING_PONG__FULL_PING_PONG

// Define the supported transfer type(s)
#define USB_SUPPORT_INTERRUPT_TRANSFERS
#define USB_SUPPORT_BULK_TRANSFERS

// Enable transfer events
#define USB_ENABLE_TRANSFER_EVENT

// Default Device Time-out
#define DEMO_TIMEOUT_LIMIT  1000
 
// Identify the application's event handler
#define USB_HOST_APP_EVENT_HANDLER usb_custom_host_demo_EventHandler

// Enable suport for reading the device's serial number
#define USB_GENERIC_SUPPORT_SERIAL_NUMBERS

// Define initial current request
#define USB_INITIAL_VBUS_CURRENT    (100/2) // 100 mA

