]> granicus.if.org Git - esp-idf/commitdiff
Implement ETS_INTR_ENABLE/ETS_INTR_DISABLE with xt_ints_on/xt_ints_off
authorliuzhifu <liuzhifu@espressif.com>
Wed, 24 Aug 2016 07:04:25 +0000 (15:04 +0800)
committerWu Jian Gang <wujiangang@espressif.com>
Fri, 26 Aug 2016 11:03:51 +0000 (19:03 +0800)
components/esp32/include/rom/ets_sys.h

index a1c186d97c82cd3626581696f4d4c0c3336f7e04..fd7bbdb9c43ce14ac2704e7ae035283d26522d81 100644 (file)
@@ -232,10 +232,10 @@ void intr_matrix_set(int cpu_no, uint32_t model_num, uint32_t intr_num);
 
 
 #define ETS_INTR_ENABLE(inum) \
-       ets_isr_unmask((1<<inum))
+        xt_ints_on((1<<inum))
 
 #define ETS_INTR_DISABLE(inum) \
-       ets_isr_mask((1<<inum))
+        xt_ints_off((1<<inum))
 
 #define ETS_CCOMPARE_INTR_ENBALE() \
     ETS_INTR_ENABLE(ETS_CCOMPARE_INUM)