浏览代码

[DM/FIXUP] Fixup PIC ktime depends

Signed-off-by: GuEe-GUI <2991707448@qq.com>
GuEe-GUI 4 月之前
父节点
当前提交
ec4f375bbc
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 1 0
      components/drivers/pic/Kconfig
  2. 2 0
      components/drivers/pic/pic.c

+ 1 - 0
components/drivers/pic/Kconfig

@@ -8,6 +8,7 @@ menuconfig RT_USING_PIC
 config RT_USING_PIC_STATISTICS
     bool "Enable ISR execution time statistics"
     depends on RT_USING_PIC
+    depends on RT_USING_KTIME
     depends on RT_USING_INTERRUPT_INFO
     default n
 

+ 2 - 0
components/drivers/pic/pic.c

@@ -16,7 +16,9 @@
 #include <rtdbg.h>
 
 #include <drivers/pic.h>
+#ifdef RT_USING_PIC_STATISTICS
 #include <ktime.h>
+#endif
 
 struct irq_traps
 {