-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathusbconfig.h
executable file
·40 lines (23 loc) · 1.06 KB
/
usbconfig.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
/****************************************************************************
* usbconfig.h
* SnapperGPS
* November 2020
*****************************************************************************/
#ifndef __USBCONFIG_H
#define __USBCONFIG_H
/* Compile stack for device mode */
#define USB_DEVICE
#define USB_CORECLK_HFRCO
/* Specify number of end points used (in addition to EP0) */
#define NUM_EP_USED 2
/* Select TIMER0 to be used by the USB stack. This timer must not be used by the application */
#define USB_TIMER USB_TIMER0
/* End point for Web USB data IN (device to host) */
#define WEBUSB_EP_IN 0x81
/* End point for Web USB data OUT (host to device) */
#define WEBUSB_EP_OUT 0x01
/* Select the clock used when USB is in low power mode */
#define USB_USBC_32kHz_CLK USB_USBC_32kHz_CLK_LFXO
/* Select the power saving mode. Enter power save on Suspend and when losing power on VBUS. The application determines when it is save to enter EM2 */
#define USB_PWRSAVE_MODE (USB_PWRSAVE_MODE_ONSUSPEND | USB_PWRSAVE_MODE_ONVBUSOFF)
#endif /* __USBCONFIG_H */