aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-10-23 12:21:44 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-10-23 12:21:44 +0000
commit2f572f109a463e7faa46ed544c91198e72e63343 (patch)
tree357162e59b91596a8441d9cd6a48f07458a95771 /os/hal/include
parent53df7ed814f665ebeef75b379941f9c0cebcba55 (diff)
downloadChibiOS-2f572f109a463e7faa46ed544c91198e72e63343.tar.gz
ChibiOS-2f572f109a463e7faa46ed544c91198e72e63343.tar.bz2
ChibiOS-2f572f109a463e7faa46ed544c91198e72e63343.zip
USB enhancements, phase two.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3451 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r--os/hal/include/usb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/os/hal/include/usb.h b/os/hal/include/usb.h
index 18842abd3..bc4418f6b 100644
--- a/os/hal/include/usb.h
+++ b/os/hal/include/usb.h
@@ -322,6 +322,16 @@ typedef const USBDescriptor * (*usbgetdescriptor_t)(USBDriver *usbp,
* @{
*/
/**
+ * @brief Connects the USB device.
+ */
+#define usbConnectBus(usbp) usb_lld_connect_bus(usbp)
+
+/**
+ * @brief Disconnect the USB device.
+ */
+#define usbDisconnectBus(usbp) usb_lld_disconnect_bus(usbp)
+
+/**
* @brief Returns the current frame number.
*
* @param[in] usbp pointer to the @p USBDriver object