Skip to content
Permalink
Browse files

Fix incorrect definition of SOFTPWM_DEFINE_PIN63_CHANNEL

Incorrect register name "DDRK1" caused compilation to fail when SOFTPWM_DEFINE_PIN63_CHANNEL or SOFTPWM_DEFINE_PINA9_CHANNEL macros were used:

error: 'DDRK1' was not declared in this scope
  • Loading branch information...
per1234 committed Jan 8, 2019
1 parent 2b22896 commit 6a1435c675fb83d217d03fb33c2dc7308fb65286
Showing with 1 addition and 1 deletion.
  1. +1 −1 PalatisSoftPWM.h
@@ -319,7 +319,7 @@
#define SOFTPWM_DEFINE_PIN61_CHANNEL_INVERT(CHANNEL) SOFTPWM_DEFINE_CHANNEL_INVERT(CHANNEL, DDRF, PORTF, PORTF7)
#define SOFTPWM_DEFINE_PIN62_CHANNEL(CHANNEL) SOFTPWM_DEFINE_CHANNEL(CHANNEL, DDRK, PORTK, PORTK0)
#define SOFTPWM_DEFINE_PIN62_CHANNEL_INVERT(CHANNEL) SOFTPWM_DEFINE_CHANNEL_INVERT(CHANNEL, DDRK, PORTK, PORTK0)
#define SOFTPWM_DEFINE_PIN63_CHANNEL(CHANNEL) SOFTPWM_DEFINE_CHANNEL(CHANNEL, DDRK1, PORTK, PORTK1)
#define SOFTPWM_DEFINE_PIN63_CHANNEL(CHANNEL) SOFTPWM_DEFINE_CHANNEL(CHANNEL, DDRK, PORTK, PORTK1)
#define SOFTPWM_DEFINE_PIN63_CHANNEL_INVERT(CHANNEL) SOFTPWM_DEFINE_CHANNEL_INVERT(CHANNEL, DDRK, PORTK, PORTK1)
#define SOFTPWM_DEFINE_PIN64_CHANNEL(CHANNEL) SOFTPWM_DEFINE_CHANNEL(CHANNEL, DDRK, PORTK, PORTK2)
#define SOFTPWM_DEFINE_PIN64_CHANNEL_INVERT(CHANNEL) SOFTPWM_DEFINE_CHANNEL_INVERT(CHANNEL, DDRK, PORTK, PORTK2)

0 comments on commit 6a1435c

Please sign in to comment.
You can’t perform that action at this time.