diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2017-06-26 19:50:55 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2017-06-26 19:50:55 +0900 |
commit | 1f7d4a6aac0bfe45ac140545655f7e3b989d5062 (patch) | |
tree | 266e7ee189f699738b178251aaedd1fdb5ea3ab4 /mcu/usb-stm32f103.c | |
parent | 526b8fec2aff8961453ee40c0d7b19bdb30da0bb (diff) |
Fix usb drivers.
Diffstat (limited to 'mcu/usb-stm32f103.c')
-rw-r--r-- | mcu/usb-stm32f103.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/mcu/usb-stm32f103.c b/mcu/usb-stm32f103.c index a6e6850..3eed8cc 100644 --- a/mcu/usb-stm32f103.c +++ b/mcu/usb-stm32f103.c @@ -31,44 +31,7 @@ #include "sys-stm32f103.h" #include "usb_lld.h" - -#define USB_MAX_PACKET_SIZE 64 /* For FS device */ - -enum STANDARD_REQUESTS -{ - GET_STATUS = 0, - CLEAR_FEATURE, - RESERVED1, - SET_FEATURE, - RESERVED2, - SET_ADDRESS, - GET_DESCRIPTOR, - SET_DESCRIPTOR, - GET_CONFIGURATION, - SET_CONFIGURATION, - GET_INTERFACE, - SET_INTERFACE, - SYNCH_FRAME, - TOTAL_REQUEST /* Total number of Standard request */ -}; - -/* The state machine states of a control pipe */ -enum CONTROL_STATE -{ - WAIT_SETUP, - IN_DATA, - OUT_DATA, - LAST_IN_DATA, - WAIT_STATUS_IN, - WAIT_STATUS_OUT, - STALLED, -}; - -enum FEATURE_SELECTOR -{ - FEATURE_ENDPOINT_HALT=0, - FEATURE_DEVICE_REMOTE_WAKEUP=1 -}; +#include "usb_lld_driver.h" #define REG_BASE (0x40005C00UL) /* USB_IP Peripheral Registers base address */ #define PMA_ADDR (0x40006000UL) /* USB_IP Packet Memory Area base address */ |