EFM32 Giant Gecko Software Documentation  efm32gg-doc-5.1.2
usbconfig.h
Go to the documentation of this file.
1 /***************************************************************************/
17 #ifndef SILICON_LABS_USBCONFIG_H
18 #define SILICON_LABS_USBCONFIG_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #define USB_DEVICE // Compile stack for device mode.
25 
26 #define USB_CORECLK_HFRCO // Use HFRCO as core clock, default is HFXO.
27 
28 #define USB_PWRSAVE_MODE (USB_PWRSAVE_MODE_ONVBUSOFF \
29  | USB_PWRSAVE_MODE_ONSUSPEND \
30  | USB_PWRSAVE_MODE_ENTEREM2 )
31 
32 /****************************************************************************
33 ** **
34 ** Specify number of endpoints used (in addition to EP0). **
35 ** **
36 *****************************************************************************/
37 #define NUM_EP_USED 2
38 
39 /****************************************************************************
40 ** **
41 ** Specify number of application timers you need. **
42 ** **
43 *****************************************************************************/
44 #define NUM_APP_TIMERS 1
45 
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif // SILICON_LABS_USBCONFIG_H