浏览代码

bugfix by disabling IRAM attr on ISR

SalimTerryLi 4 年之前
父节点
当前提交
9302b28b73
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/peripherals/wave_gen/main/wave_gen_example_main.c

+ 1 - 1
examples/peripherals/wave_gen/main/wave_gen_example_main.c

@@ -82,7 +82,7 @@ static void example_timer_init(int timer_idx, bool auto_reload)
     ret = timer_enable_intr(TIMER_GROUP_0, TIMER_0);
     ret = timer_enable_intr(TIMER_GROUP_0, TIMER_0);
     ESP_ERROR_CHECK(ret);
     ESP_ERROR_CHECK(ret);
     /* Register an ISR handler */
     /* Register an ISR handler */
-    timer_isr_register(TIMER_GROUP_0, timer_idx, timer0_ISR, (void *)raw_val, ESP_INTR_FLAG_IRAM, NULL);
+    timer_isr_register(TIMER_GROUP_0, timer_idx, timer0_ISR, (void *)raw_val, 0, NULL);
 }
 }
 
 
  static void prepare_data(int pnt_num)
  static void prepare_data(int pnt_num)