File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
components/hal/include/hal Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -539,6 +539,20 @@ static inline void usb_dwc_hal_disable_debounce_lock(usb_dwc_hal_context_t *hal)
539539 usb_dwc_ll_gintmsk_en_intrs (hal -> dev , USB_DWC_LL_INTR_CORE_PRTINT | USB_DWC_LL_INTR_CORE_DISCONNINT );
540540}
541541
542+ /**
543+ * @brief Check if the root port is suspended
544+ *
545+ * This function checks if the root port entered suspended state, after calling usb_dwc_hal_port_suspend()
546+ *
547+ * @param hal Context of the HAL layer
548+ * @return true The root port is suspended
549+ * @return false The root port is not suspended
550+ */
551+ static inline bool usb_dwc_hal_port_check_if_suspended (usb_dwc_hal_context_t * hal )
552+ {
553+ return usb_dwc_ll_hprt_get_port_suspend (hal -> dev );
554+ }
555+
542556// ----------------------------------------------------- Channel -------------------------------------------------------
543557
544558// ----------------- Channel Allocation --------------------
You can’t perform that action at this time.
0 commit comments