feat(system): add an error log and a hint on failed interrupt alloc

When interrupt allocation fails, esp_intr_alloc will now print a
message telling that no free interrupt was found. This message is
then checked in hints.yml, to give a link to the troubleshooting
guide.
This commit is contained in:
Ivan Grokhotkov
2023-07-12 11:28:45 +02:00
parent 375ebb1a41
commit 0ebe2cecfa
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -542,6 +542,7 @@ esp_err_t esp_intr_alloc_intrstatus(int source, int flags, uint32_t intrstatusre
//None found. Bail out.
portEXIT_CRITICAL(&spinlock);
free(ret);
ESP_LOGE(TAG, "No free interrupt inputs for %s interrupt (flags 0x%X)", esp_isr_names[source], flags);
return ESP_ERR_NOT_FOUND;
}
//Get an int vector desc for int.