Skip to content

Commit da8dc3b

Browse files
committed
[DM/FIXUP] Fixup PIC ktime depends
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 88aaa35 commit da8dc3b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

components/drivers/pic/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ menuconfig RT_USING_PIC
88
config RT_USING_PIC_STATISTICS
99
bool "Enable ISR execution time statistics"
1010
depends on RT_USING_PIC
11+
depends on RT_USING_KTIME
1112
depends on RT_USING_INTERRUPT_INFO
1213
default n
1314

components/drivers/pic/pic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
#include <rtdbg.h>
1717

1818
#include <drivers/pic.h>
19+
#ifdef RT_USING_PIC_STATISTICS
1920
#include <ktime.h>
21+
#endif
2022

2123
struct irq_traps
2224
{

0 commit comments

Comments
 (0)