diff options
| author | GuEe-GUI <[email protected]> | 2024-12-11 17:42:34 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-12-13 10:39:20 +0800 |
| commit | ec4f375bbc8f4baf88c99d0464842f67a79b3def (patch) | |
| tree | 556ddef6e5c89a72863b47022d4da18917d66504 | |
| parent | ab4c622138ddfd31b323ced1c27c1b21e66c9d53 (diff) | |
[DM/FIXUP] Fixup PIC ktime depends
Signed-off-by: GuEe-GUI <[email protected]>
| -rwxr-xr-x | components/drivers/pic/Kconfig | 1 | ||||
| -rw-r--r-- | components/drivers/pic/pic.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/components/drivers/pic/Kconfig b/components/drivers/pic/Kconfig index d8d077fb76..3cf00c0295 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 eebe3fd6fe..032c965d52 100644 --- a/components/drivers/pic/pic.c +++ b/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 { |
