Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit b3e7f43

Browse files
authored
v1.1.0 fix missing Timer3 and Timer4 code
### Releases v1.1.0 1. Fix missing code for Timer3 and Timer4
1 parent 5ebfe85 commit b3e7f43

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ATmega_TimerInterrupt.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,10 @@ class ATmega_TimerInterrupt
435435

436436
#if !defined(USE_TIMER_3)
437437
#define USE_TIMER_3 false
438-
#elif ( USE_TIMER_3 && ( TIMER_INTERRUPT_USING_ATMEGA_1284 ) )
439-
#warning Timer3 (16-bit) is OK to use for ATMEGA_1284(P)
438+
#elif ( USE_TIMER_3 && ( TIMER_INTERRUPT_USING_ATMEGA_1284 || TIMER_INTERRUPT_USING_ATMEGA_324PB ) )
439+
#warning Timer3 (16-bit) is OK to use for ATMEGA_1284(P) or ATMEGA_324PB
440440
#elif USE_TIMER_3
441-
#error Timer3 is only available for ATMEGA_1284(P)
441+
#error Timer3 is only available for ATMEGA_1284(P) and ATMEGA_324PB
442442
#endif
443443

444444
#if !defined(USE_TIMER_4)

src/ATmega_TimerInterrupt_Impl.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ void ATmega_TimerInterrupt::resumeTimer(void)
653653
#endif //#ifndef TIMER2_INSTANTIATED
654654
#endif //#if USE_TIMER_2
655655

656-
#if (TIMER_INTERRUPT_USING_ATMEGA_1284)
656+
#if ( TIMER_INTERRUPT_USING_ATMEGA_1284 || TIMER_INTERRUPT_USING_ATMEGA_324PB )
657657

658658
// Pre-instatiate
659659
#if USE_TIMER_3
@@ -705,7 +705,7 @@ void ATmega_TimerInterrupt::resumeTimer(void)
705705
#endif //#ifndef TIMER3_INSTANTIATED
706706
#endif //#if USE_TIMER_3
707707

708-
#endif //#if (TIMER_INTERRUPT_USING_ATMEGA_1284)
708+
#endif //#if ( TIMER_INTERRUPT_USING_ATMEGA_1284 || TIMER_INTERRUPT_USING_ATMEGA_324PB )
709709

710710
#if (TIMER_INTERRUPT_USING_ATMEGA_324PB)
711711

0 commit comments

Comments
 (0)