mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
095b541125
This commit removes internal event flags in the USB Host Library event handling functions (i.e., usb_host_lib_handle_events() and usb_host_client_handle_events()). Previously, these flags were added to reduce the number of times semaphores were given. However, these flags were removed as the performance gain is negligible and made the logic more complicated. For usb_host_client_handle_events(), the following flags were removed: - Remove 'events_pending' flag. The semaphore is now always given - Remove 'blocked' flag. The 'handling_events' flag is already sufficient - Critical sections are now shortened due to simplication of semaphore usage. For usb_host_lib_handle_events(), the following flags were removed: - Remove 'process_pending' flag. The semaphore is now always given - Renamed 'blocked' flag to 'handling_events' |
||
---|---|---|
.. | ||
include | ||
private_include | ||
test_apps | ||
CMakeLists.txt | ||
hcd_dwc.c | ||
hub.c | ||
Kconfig | ||
maintainers.md | ||
usb_helpers.c | ||
usb_host.c | ||
usb_phy.c | ||
usb_private.c | ||
usbh.c |