New USB stack

This commit is contained in:
NIIBE Yutaka
2012-05-10 19:01:01 +09:00
parent c98f1fe8c6
commit b56c3b81ec
56 changed files with 1648 additions and 11343 deletions

View File

@@ -1,24 +1,9 @@
/* USB configuration file for USB-FS-Device_Lib */
/*
* For detail, please see the documentation of
* STM32F10x USB Full Speed Device Library (USB-FS-Device_Lib)
* by STMicroelectronics
*/
/* USB buffer memory definition and number of string descriptors */
#ifndef __USB_CONF_H
#define __USB_CONF_H
#ifdef PINPAD_DND_SUPPORT
# define EP_NUM (8)
#else
# ifdef ENABLE_VIRTUAL_COM_PORT
# define EP_NUM (6)
# else
# define EP_NUM (3)
# endif
#endif
#define BTABLE_ADDRESS (0x00)
#define NUM_STRING_DESC 4
/* EP0 */
#define ENDP0_RXADDR (0x40)
@@ -41,6 +26,4 @@
/* EP7 */
#define ENDP7_RXADDR (0x1c0)
#define IMR_MSK (CNTR_CTRM | CNTR_SOFM | CNTR_RESETM )
#endif /* __USB_CONF_H */