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

Commit

Permalink
v1.1.0 fix missing Timer3 and Timer4 code
Browse files Browse the repository at this point in the history
### Releases v1.1.0

1. Fix missing code for Timer3 and Timer4
  • Loading branch information
khoih-prog committed Aug 23, 2022
1 parent 5ebfe85 commit b3e7f43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/ATmega_TimerInterrupt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,10 @@ class ATmega_TimerInterrupt

#if !defined(USE_TIMER_3)
#define USE_TIMER_3 false
#elif ( USE_TIMER_3 && ( TIMER_INTERRUPT_USING_ATMEGA_1284 ) )
#warning Timer3 (16-bit) is OK to use for ATMEGA_1284(P)
#elif ( USE_TIMER_3 && ( TIMER_INTERRUPT_USING_ATMEGA_1284 || TIMER_INTERRUPT_USING_ATMEGA_324PB ) )
#warning Timer3 (16-bit) is OK to use for ATMEGA_1284(P) or ATMEGA_324PB
#elif USE_TIMER_3
#error Timer3 is only available for ATMEGA_1284(P)
#error Timer3 is only available for ATMEGA_1284(P) and ATMEGA_324PB
#endif

#if !defined(USE_TIMER_4)
Expand Down
4 changes: 2 additions & 2 deletions src/ATmega_TimerInterrupt_Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ void ATmega_TimerInterrupt::resumeTimer(void)
#endif //#ifndef TIMER2_INSTANTIATED
#endif //#if USE_TIMER_2

#if (TIMER_INTERRUPT_USING_ATMEGA_1284)
#if ( TIMER_INTERRUPT_USING_ATMEGA_1284 || TIMER_INTERRUPT_USING_ATMEGA_324PB )

// Pre-instatiate
#if USE_TIMER_3
Expand Down Expand Up @@ -705,7 +705,7 @@ void ATmega_TimerInterrupt::resumeTimer(void)
#endif //#ifndef TIMER3_INSTANTIATED
#endif //#if USE_TIMER_3

#endif //#if (TIMER_INTERRUPT_USING_ATMEGA_1284)
#endif //#if ( TIMER_INTERRUPT_USING_ATMEGA_1284 || TIMER_INTERRUPT_USING_ATMEGA_324PB )

#if (TIMER_INTERRUPT_USING_ATMEGA_324PB)

Expand Down

0 comments on commit b3e7f43

Please sign in to comment.