ledc: move callback to IRAM, it's called from an ISR

This commit is contained in:
chli
2022-12-19 13:46:50 +00:00
committed by Song Ruo Jing
parent af9e99759a
commit 9fa8e2df41

View File

@@ -65,7 +65,7 @@
* Use callback only if you are aware it is being called inside an ISR
* Otherwise, you can use a semaphore to unblock tasks
*/
static bool cb_ledc_fade_end_event(const ledc_cb_param_t *param, void *user_arg)
static IRAM_ATTR bool cb_ledc_fade_end_event(const ledc_cb_param_t *param, void *user_arg)
{
portBASE_TYPE taskAwoken = pdFALSE;