evk_timer.h
This module controls timer features of the SPARK EVK board.
- Copyright
Copyright (C) 2026 SPARK Microsystems International Inc. All rights reserved.
- License
This source code is proprietary and subject to the SPARK Microsystems Software EULA found in this package in file EULA.txt.
- Author
SPARK FW Team.
Functions
-
void evk_timer_free_running_ms_init(uint8_t irq_priority)
Initialize the free running millisecond timer.
- Parameters:
irq_priority – [in] Free running timer millisecond interrupt priority.
-
void evk_timer_free_running_quarter_ms_init(uint8_t irq_priority)
Initialize the free running quarter millisecond timer.
- Parameters:
irq_priority – [in] Timer interrupt priority.
-
void evk_timer_delay_ms(uint32_t delay_ms)
Blocking delay with a 1 millisecond resolution.
- Parameters:
delay_ms – [in] Delay in milliseconds to wait.
-
uint32_t evk_timer_get_ms_tick(void)
Get timebase tick value.
- Returns:
Tick value.
-
uint64_t evk_timer_free_running_ms_get_tick_count(void)
Get the free running timer tick count with a 1 millisecond resolution.
- Returns:
Tick count.
-
uint32_t evk_timer_free_running_ms_get_tick_frequency(void)
Get the free running ms timer tick frequency.
- Returns:
The free running ms timer tick frequency.
-
uint64_t evk_timer_free_running_quarter_ms_get_tick_count(void)
Get the free running timer tick count with a 250 microseconds resolution.
- Returns:
Tick count.