drivers: timer: improve sys_timer_disable usage

- Remove the weak symbol definition
- Notify about the capability of disabling via a selected Kconfig option
  (CONFIG_SYSTEM_TIMER_HAS_DISABLE_SUPPORT)
- Provide a dummy inline function when the functionality is not
  available

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-11-04 14:26:19 +01:00 committed by Anas Nashif
commit 78dc8ce338
10 changed files with 28 additions and 20 deletions

View file

@ -9,6 +9,7 @@ config NATIVE_POSIX_TIMER
depends on BOARD_NATIVE_POSIX
select TICKLESS_CAPABLE
select TIMER_HAS_64BIT_CYCLE_COUNTER
select SYSTEM_TIMER_HAS_DISABLE_SUPPORT
help
This module implements a kernel device driver for the native_posix HW timer
model