Merge branch 'contrib/github_pr_10402' into 'master'

ledc: move callback to IRAM as it's called from an ISR (GitHub PR)

Closes IDFGH-8990

See merge request espressif/esp-idf!21711
This commit is contained in:
Song Ruo Jing
2022-12-22 16:55:29 +08:00
4 changed files with 11 additions and 3 deletions
@@ -67,7 +67,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;