Add a kernel timer driver for the MEC1501 32KHz RTOS timer. This timer is a count down 32-bit counter clocked at a fixed 32768 Hz. It features one-shot, auto-reload, and halt count down while the Cortex-M is halted by JTAG/SWD. This driver is based on the new Intel local APIC driver. The driver was tuned for accuracy at small sleep values. Added a work-around for RTOS timer restart issue. RTOS timer driver requires board ticks per second to be 32768 if tickless operation is configured. Signed-off-by: Scott Worley <scott.worley@microchip.com>
18 lines
927 B
CMake
18 lines
927 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_sources( sys_clock_init.c)
|
|
zephyr_sources_ifdef(CONFIG_HPET_TIMER hpet.c)
|
|
zephyr_sources_ifdef(CONFIG_ARCV2_TIMER arcv2_timer0.c)
|
|
zephyr_sources_if_kconfig( loapic_timer.c)
|
|
zephyr_sources_if_kconfig( apic_timer.c)
|
|
zephyr_sources_ifdef(CONFIG_ALTERA_AVALON_TIMER altera_avalon_timer_hal.c)
|
|
zephyr_sources_if_kconfig( nrf_rtc_timer.c)
|
|
zephyr_sources_if_kconfig( riscv_machine_timer.c)
|
|
zephyr_sources_if_kconfig( rv32m1_lptmr_timer.c)
|
|
zephyr_sources_if_kconfig( cortex_m_systick.c)
|
|
zephyr_sources_ifdef(CONFIG_XTENSA_TIMER xtensa_sys_timer.c)
|
|
zephyr_sources_if_kconfig( native_posix_timer.c)
|
|
zephyr_sources_if_kconfig( sam0_rtc_timer.c)
|
|
zephyr_sources_if_kconfig( litex_timer.c)
|
|
zephyr_sources_if_kconfig( mchp_xec_rtos_timer.c)
|