From 0ab0ebf8cbf38649c1d4837ce56c314154b7093c Mon Sep 17 00:00:00 2001 From: tmk Date: Thu, 21 May 2020 15:41:34 +0900 Subject: [PATCH] core: Make TIMER0 ISR noblock The TIMER0 ISR takes 1.5us and can affect IBMPC protocol ISR. Add ISR_NOBLOCK to allow interrupt during TIMER0 ISR. --- tmk_core/common/avr/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmk_core/common/avr/timer.c b/tmk_core/common/avr/timer.c index 1aa4a6a8..9be3fa8b 100644 --- a/tmk_core/common/avr/timer.c +++ b/tmk_core/common/avr/timer.c @@ -115,7 +115,7 @@ uint32_t timer_elapsed32(uint32_t last) } // excecuted once per 1ms.(excess for just timer count?) -ISR(TIMER0_COMPA_vect) +ISR(TIMER0_COMPA_vect, ISR_NOBLOCK) { timer_count++; } -- 2.46.2