summaryrefslogtreecommitdiff
path: root/src/stm/ao_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm/ao_timer.c')
-rw-r--r--src/stm/ao_timer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/stm/ao_timer.c b/src/stm/ao_timer.c
index f3011d3f..d82a803e 100644
--- a/src/stm/ao_timer.c
+++ b/src/stm/ao_timer.c
@@ -56,10 +56,12 @@ void stm_tim6_isr(void)
#if HAS_ADC
void
-ao_timer_set_adc_interval(uint8_t interval) __critical
+ao_timer_set_adc_interval(uint8_t interval)
{
- ao_data_interval = interval;
- ao_data_count = 0;
+ ao_arch_critical(
+ ao_data_interval = interval;
+ ao_data_count = 0;
+ );
}
#endif