mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 16:49:51 +08:00
A little STM32 logic in the PIC32 USB driver
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4235 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -47,6 +47,11 @@
|
||||
/************************************************************************************
|
||||
* Preprocessor Definitions
|
||||
************************************************************************************/
|
||||
/* USB Tokens (See chapter 8 in the USB specification) */
|
||||
|
||||
#define USB_SETUP_TOKEN 0x0d
|
||||
#define USB_OUT_TOKEN 0x01
|
||||
#define USB_IN_TOKEN 0x09
|
||||
|
||||
/* All 16-bit values must be little-endian */
|
||||
|
||||
@@ -209,6 +214,14 @@
|
||||
# define USB_EP_ATTR_USAGE_IMPLICIT (2 << USB_EP_ATTR_USAGE_SHIFT)
|
||||
#define USB_EP_ATTR_MAX_ADJUSTABLE (1 << 7)
|
||||
|
||||
/* OTG Definitions */
|
||||
|
||||
/* OTG SET FEATURE Constants */
|
||||
|
||||
#define USBOTG_FEATURE_B_HNP_ENABLE 3 /* Enable B device to perform HNP */
|
||||
#define USBOTG_FEATURE_A_HNP_SUPPORT 4 /* A device supports HNP */
|
||||
#define USBOTG_FEATURE_A_ALT_HNP_SUPPORT 5 /* Another port on the A device supports HNP */
|
||||
|
||||
/************************************************************************************
|
||||
* Public Types
|
||||
************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user