diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/include/usb.h | 2 | ||||
-rw-r--r-- | os/hal/templates/halconf.h | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/os/hal/include/usb.h b/os/hal/include/usb.h index e8a5a3344..77dda4593 100644 --- a/os/hal/include/usb.h +++ b/os/hal/include/usb.h @@ -239,7 +239,7 @@ * @note Disabling this option saves both code and data space.
*/
#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
-#define USB_USE_WAIT TRUE
+#define USB_USE_WAIT FALSE
#endif
/*===========================================================================*/
diff --git a/os/hal/templates/halconf.h b/os/hal/templates/halconf.h index 843f0cc34..da13911e1 100644 --- a/os/hal/templates/halconf.h +++ b/os/hal/templates/halconf.h @@ -165,6 +165,13 @@ #if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
#define HAL_USE_USB TRUE
#endif
+
+/**
+ * @brief Enables the WDG subsystem.
+ */
+#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
+#define HAL_USE_WDG TRUE
+#endif
/** @} */
/*===========================================================================*/
@@ -389,6 +396,18 @@ #define UART_USE_MUTUAL_EXCLUSION FALSE
#endif
+/*===========================================================================*/
+/* USB driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables synchronous APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
+#define USB_USE_WAIT FALSE
+#endif
+
#endif /* _HALCONF_H_ */
/** @} */
|