diff --git a/components/drivers/pic/Kconfig b/components/drivers/pic/Kconfig index d8d077fb7626..3cf00c029560 100755 --- a/components/drivers/pic/Kconfig +++ b/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 diff --git a/components/drivers/pic/pic.c b/components/drivers/pic/pic.c index eebe3fd6feb2..032c965d5281 100644 --- a/components/drivers/pic/pic.c +++ b/components/drivers/pic/pic.c @@ -16,7 +16,9 @@ #include #include +#ifdef RT_USING_PIC_STATISTICS #include +#endif struct irq_traps {