CONFIG_XTENSA_TIMER_ID

System timer CCOMPAREn register index

Type: int

Help

Index of the CCOMPARE register (and associated interrupt) used for the system timer. Xtensa CPUs have hard-configured interrupt priorities associated with each timer, and some of them can be unmaskable (and thus not usable by OS code that need synchronization, like the timer subsystem!). Choose carefully. Generally you want the timer with the highest priority maskable interrupt.

Direct dependencies

XTENSA_TIMER

(Includes any dependencies from ifs and menus.)

Default

  • 1

Kconfig definition

At drivers/timer/Kconfig:189

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:24

Menu path: (Top) → Device Drivers → Timer Drivers → Xtensa timer support

config XTENSA_TIMER_ID
    int "System timer CCOMPAREn register index"
    default 1
    depends on XTENSA_TIMER
    help
      Index of the CCOMPARE register (and associated interrupt)
      used for the system timer.  Xtensa CPUs have hard-configured
      interrupt priorities associated with each timer, and some of
      them can be unmaskable (and thus not usable by OS code that
      need synchronization, like the timer subsystem!).  Choose
      carefully.  Generally you want the timer with the highest
      priority maskable interrupt.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)