aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/hal/include/usb.h10
-rw-r--r--os/various/shell.c2
2 files changed, 11 insertions, 1 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
diff --git a/os/various/shell.c b/os/various/shell.c
index a99f2657c..4c84a7b51 100644
--- a/os/various/shell.c
+++ b/os/various/shell.c
@@ -204,7 +204,7 @@ static msg_t shell_thread(void *p) {
there is not a chSysUnlock() because the thread terminates upon return.*/
chSysLock();
chEvtBroadcastI(&shell_terminated);
- return msg;
+ chThdExitS(msg);
}
/**