drivers: timers: Add dependency on SYS_CLOCK_EXISTS to all timer configs
Add dependency on SYS_CLOCK_EXISTS to all timer configurations. This would avoid a situation where a possible timer configuration would be wrongfully selected but SYS_CLOCK_EXISTS is disabled. This simplifies code that wants to check for system clock capabilities don't have to check if the system clock exists in addition. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
8377ed9dfc
commit
8703ec6e86
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
# Copyright (c) 2019 Intel Corp.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SYS_CLOCK_EXISTS
|
||||
|
||||
menu "Timer Drivers"
|
||||
|
||||
config TIMER_HAS_64BIT_CYCLE_COUNTER
|
||||
|
@ -90,3 +92,5 @@ source "drivers/timer/Kconfig.xlnx_psttc"
|
|||
source "drivers/timer/Kconfig.xtensa"
|
||||
|
||||
endmenu
|
||||
|
||||
endif # SYS_CLOCK_EXISTS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue