aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/usb.h
diff options
context:
space:
mode:
authorlbednarz <lbednarz@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-04-02 18:26:14 +0000
committerlbednarz <lbednarz@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-04-02 18:26:14 +0000
commit56f18ed54da774cf8c7527545812be6a7cdb28fa (patch)
tree693eb920e73c4c0b4b03026b4c81fa995fd6ac77 /os/hal/include/usb.h
parent6a62119514c225b0d26e4c356c45dd4ea6466e9f (diff)
downloadChibiOS-56f18ed54da774cf8c7527545812be6a7cdb28fa.tar.gz
ChibiOS-56f18ed54da774cf8c7527545812be6a7cdb28fa.tar.bz2
ChibiOS-56f18ed54da774cf8c7527545812be6a7cdb28fa.zip
merged RX stuff
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6831 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/usb.h')
-rw-r--r--os/hal/include/usb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/os/hal/include/usb.h b/os/hal/include/usb.h
index 4a948a84f..9cfc0fb00 100644
--- a/os/hal/include/usb.h
+++ b/os/hal/include/usb.h
@@ -78,6 +78,12 @@
#define USB_EARLY_SET_ADDRESS 0
#define USB_LATE_SET_ADDRESS 1
+#define USB_EP0_STATUS_STAGE_SW 0
+#define USB_EP0_STATUS_STAGE_HW 1
+
+#define USB_SET_ADDRESS_ACK_SW 0
+#define USB_SET_ADDRESS_ACK_HW 1
+
/**
* @name Helper macros for USB descriptors
* @{
@@ -445,6 +451,9 @@ typedef const USBDescriptor * (*usbgetdescriptor_t)(USBDriver *usbp,
(usbp)->ep0endcb = (endcb); \
}
+#define usbSetupEnd(usbp, ep) \
+ usb_lld_end_transaction(usbp, ep)
+
/**
* @brief Reads a setup packet from the dedicated packet buffer.
* @details This function must be invoked in the context of the @p setup_cb