mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-28 11:28:43 +00:00
a8c8b831b8
Treat ESP_INTR_FLAG_SHARED_PRIVATE as shared when selecting interrupt lines and avoid misclassifying private shared vectors as non-shared during free. Also fix two error-path leaks in esp_intr_alloc_info by freeing the temporary handle and rolling back group_name on allocation failure. refactor(esp_hw_support): add semantic vector descriptor helpers Introduce helper macros to classify vector descriptor state (shared, non-shared, private shared, and uninitialized) and apply them in allocator/free/dump paths. This makes private-shared semantics explicit and reduces repeated bitwise checks. Rename vector descriptor helpers to explicitly distinguish public shared, private shared, and shared-family states. This improves readability and avoids ambiguity when handling mixed shared/non-shared flag combinations.