-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusb_config.h
93 lines (72 loc) · 3.12 KB
/
usb_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
********************************************************************************
Software License Agreement
Copyright (c) 2007-2008 Microchip Technology Inc. and its licensors. All
rights reserved.
Microchip licenses to you the right to: (1) install Software on a single
computer and use the Software with Microchip 16-bit microcontrollers and
16-bit digital signal controllers ("Microchip Product"); and (2) at your
own discretion and risk, use, modify, copy and distribute the device
driver files of the Software that are provided to you in Source Code;
provided that such Device Drivers are only used with Microchip Products
and that no open source or free software is incorporated into the Device
Drivers without Microchip's prior written consent in each instance.
You should refer to the license agreement accompanying this Software for
additional information regarding your rights and obligations.
SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY
WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A
PARTICULAR PURPOSE. IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE
LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY,
CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY
DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY
INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR
LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY,
SERVICES, ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY
DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
********************************************************************************
*/
// Created by the Microchip USBConfig Utility, Version 0.0.12.0, 3/28/2008, 8:58:18
#ifndef _usb_config_h_
#define _usb_config_h_
#if defined(__PIC24F__)
#include <p24fxxxx.h>
#elif defined(__18CXX)
#include <p18cxxx.h>
#elif defined(__PIC32MX__)
#include <p32xxxx.h>
#include "plib.h"
#else
#error No processor header file.
#endif
#define _USB_CONFIG_VERSION_MAJOR 0
#define _USB_CONFIG_VERSION_MINOR 0
#define _USB_CONFIG_VERSION_DOT 12
#define _USB_CONFIG_VERSION_BUILD 0
#define USB_SUPPORT_HOST
#define USB_PING_PONG_MODE USB_PING_PONG__FULL_PING_PONG
#define NUM_TPL_ENTRIES 3
#define NUM_CLIENT_DRIVER_ENTRIES 2
#define USB_ENABLE_TRANSFER_EVENT
#define USB_HOST_APP_DATA_EVENT_HANDLER USB_ApplicationDataEventHandler
//#define USB_ENABLE_SOF_EVENT
#define USB_ENABLE_1MS_EVENT
#define ANDROID_DEVICE_ATTACH_TIMEOUT 3000
#define USB_MAX_GENERIC_DEVICES 1
#define USB_NUM_CONTROL_NAKS 20
#define USB_SUPPORT_INTERRUPT_TRANSFERS
#define USB_SUPPORT_BULK_TRANSFERS
#define USB_NUM_INTERRUPT_NAKS 3
#define USB_INITIAL_VBUS_CURRENT (100/2)
#define USB_INSERT_TIME (250+1)
#define USB_HOST_APP_EVENT_HANDLER USB_ApplicationEventHandler
#define USBTasks() \
{ \
USBHostTasks(); \
AndroidTasks(); \
}
#define USBInitialize(x) \
{ \
USBHostInit(x); \
}
#endif