aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/quantum.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index a62368ded..a4ccccd00 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -1125,6 +1125,13 @@ static const uint8_t backlight_pin = BACKLIGHT_PIN;
# define COMxx1 COM1A1
# define OCRxx OCR3A
# define ICRx ICR3
+#elif defined(__AVR_ATmega32A__) && BACKLIGHT_PIN == D4
+# define TCCRxA TCCR1A
+# define TCCRxB TCCR1B
+# define COMxx1 COM1B1
+# define OCRxx OCR1B
+# define ICRx ICR1
+# define TIMSK1 TIMSK
#else
# define NO_HARDWARE_PWM
#endif