We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b48cdc4 commit 7d09c83Copy full SHA for 7d09c83
drivers/timer/ambiq_stimer.c
@@ -28,10 +28,10 @@
28
#define CYC_PER_TICK (sys_clock_hw_cycles_per_sec() / CONFIG_SYS_CLOCK_TICKS_PER_SEC)
29
#define MAX_TICKS ((k_ticks_t)(COUNTER_MAX / CYC_PER_TICK) - 1)
30
#define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
31
-#if defined(CONFIG_SOC_SERIES_APOLLO3X) || defined(CONFIG_SOC_SERIES_APOLLO5X)
32
-#define MIN_DELAY 1
+#if defined(AM_HAL_STIMER_MIN_DELTA)
+#define MIN_DELAY AM_HAL_STIMER_MIN_DELTA
33
#else
34
-#define MIN_DELAY 4
+#define MIN_DELAY 1
35
#endif
36
37
#if defined(CONFIG_SOC_SERIES_APOLLO5X)
0 commit comments