mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
esp_rom: sync changes for ESP32-S3 USB related files, minor fix for S2
Used esp-rom tag esp32s3-20210327 and did manual cleanup. Rename s_usb_osglue to rom_usb_osglue like it was done for esp32s2. Some comments in esp32s2 headers are synced from esp32s3.
This commit is contained in:
@@ -372,19 +372,43 @@ int usb_dc_ep_read_continue(uint8_t ep);
|
||||
int usb_dc_ep_mps(uint8_t ep);
|
||||
|
||||
|
||||
|
||||
//Hack - fake interrupts by pollinfg
|
||||
/**
|
||||
* @brief Poll for interrupts that need to be handled
|
||||
*
|
||||
* When the USB interrupt is not hooked up to an actual CPU interrupt, you
|
||||
* can call this periodically to handle the USB events that need handling.
|
||||
*/
|
||||
void usb_dc_check_poll_for_interrupts(void);
|
||||
|
||||
|
||||
//Prepare for USB persist. You should reboot after this.
|
||||
/*
|
||||
* @brief Prepare for USB persist
|
||||
*
|
||||
* This takes the USB peripheral offline in such a way that it seems 'just busy' to the
|
||||
* host. This way, the chip can reboot (e.g. into bootloader mode) and pick up the USB
|
||||
* configuration again, without the conenction to the host being interrupted.
|
||||
*
|
||||
* @note Actual persistence is depending on USBDC_PERSIST_ENA being set in flags, as this
|
||||
* is also used to e.g. reboot into DFU mode.
|
||||
*
|
||||
* @note Please reboot soon after calling this.
|
||||
*/
|
||||
int usb_dc_prepare_persist(void);
|
||||
|
||||
|
||||
/*
|
||||
* @brief USB interrupt handler
|
||||
*
|
||||
* This can be hooked up by the OS to the USB peripheral interrupt.
|
||||
*/
|
||||
void usb_dw_isr_handler(void);
|
||||
|
||||
/**
|
||||
* @brief Provide IDF with an interface to clear the static variable usb_dw_ctrl
|
||||
*
|
||||
*
|
||||
*/
|
||||
void usb_dw_ctrl_deinit(void);
|
||||
|
||||
int usb_dc_ep_write_would_block(const uint8_t ep);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user