From: tmk Date: Thu, 21 May 2020 06:41:34 +0000 (+0900) Subject: core: Make TIMER0 ISR noblock X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=0ab0ebf8cbf38649c1d4837ce56c314154b7093c;p=max%2Ftmk_keyboard.git 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. --- 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++; }