GD32F1x0: USB/GD32_USB_Device_Driver/inc/usb_conf_template.h Source File

GD32F1x0

usb_conf_template.h
Go to the documentation of this file.
1 
11 /* Define to prevent recursive inclusion -------------------------------------*/
12 #ifndef __GD32F1X0_USB_CONF_TEMPLATE_H
13 #define __GD32F1X0_USB_CONF_TEMPLATE_H
14 
15 /* Includes ------------------------------------------------------------------*/
16 #include "gd32f1x0.h"
17 #include "gd32150r_eval.h"
18 
35 /* Define if low power mode is enabled; it allows entering the device into DEEP_SLEEP mode
36  following USB suspend event and wakes up after the USB wakeup event is received. */
37 /* #define USB_DEVICE_LOW_PWR_MGMT_SUPPORT */
38 
39 /* Endpoints used by the device */
40 #define EP_NUM (3)
41 
42 /* Buffer table base address */
43 #define BTABLE_ADDRESS (0x0000)
44 
45 /* Endpoint 0 Rx/Tx buffers base address */
46 #define ENDP0_RX_ADDRESS (0x18)
47 #define ENDP0_TX_ADDRESS (0x58)
48 
49 /* Device endpoint Tx buffer base address */
50 #define MSC_TX_ADDRESS (0x98)
51 
52 /* Device endpoint Rx buffer base address */
53 #define MSC_RX_ADDRESS (0xD8)
54 
59 #endif /* __GD32F1X0_USB_CONF_TEMPLATE_H */
60 
73 /************************ (C) COPYRIGHT 2014 GIGADEVICE *****END OF FILE****/
Generated by   doxygen 1.8.10