refactor(console): Use esp_hal_usb APIs in USB console

Also remove unused usb_reg.h and usb_struct.h

Closes https://github.com/espressif/esp-idf/issues/12710
Preparation for https://github.com/espressif/esp-idf/issues/18992
This commit is contained in:
Tomas Rezucha
2026-09-10 14:30:18 +08:00
committed by BOT
parent a7cb4cc709
commit 1bbd9ee09a
12 changed files with 74 additions and 21299 deletions
@@ -326,6 +326,17 @@ static inline void usb_dwc_ll_gintsts_clear_intrs(usb_dwc_dev_t *hw, uint32_t in
hw->gintsts_reg.val = intr_msk;
}
/**
* @brief Reads the pending interrupts, i.e. those which are both asserted and unmasked
*
* @param hw Start address of the DWC_OTG registers
* @return uint32_t Mask of pending interrupts
*/
static inline uint32_t usb_dwc_ll_gintsts_read_pending_intrs(usb_dwc_dev_t *hw)
{
return hw->gintsts_reg.val & hw->gintmsk_reg.val;
}
// --------------------------- GINTMSK Register --------------------------------
static inline void usb_dwc_ll_gintmsk_en_intrs(usb_dwc_dev_t *hw, uint32_t intr_mask)