aboutsummaryrefslogtreecommitdiff
path: root/quantum/backlight/backlight_avr.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/backlight/backlight_avr.c')
-rw-r--r--quantum/backlight/backlight_avr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/backlight/backlight_avr.c b/quantum/backlight/backlight_avr.c
index 4d66da80b..e47192de3 100644
--- a/quantum/backlight/backlight_avr.c
+++ b/quantum/backlight/backlight_avr.c
@@ -68,7 +68,7 @@
68# define COMxx1 COM3A1 68# define COMxx1 COM3A1
69# define OCRxx OCR3A 69# define OCRxx OCR3A
70# endif 70# endif
71#elif (defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega32U2__)) && (BACKLIGHT_PIN == B7 || BACKLIGHT_PIN == C5 || BACKLIGHT_PIN == C6) 71#elif (defined(__AVR_AT90USB162__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega32U2__)) && (BACKLIGHT_PIN == B7 || BACKLIGHT_PIN == C5 || BACKLIGHT_PIN == C6)
72# define HARDWARE_PWM 72# define HARDWARE_PWM
73# define ICRx ICR1 73# define ICRx ICR1
74# define TCCRxA TCCR1A 74# define TCCRxA TCCR1A
@@ -126,7 +126,7 @@
126# define COMxx1 COM1B1 126# define COMxx1 COM1B1
127# define OCRxx OCR1B 127# define OCRxx OCR1B
128# endif 128# endif
129#elif !defined(B5_AUDIO) && !defined(B6_AUDIO) && !defined(B7_AUDIO) 129#elif (AUDIO_PIN != B5) && (AUDIO_PIN != B6) && (AUDIO_PIN != B7) && (AUDIO_PIN_ALT != B5) && (AUDIO_PIN_ALT != B6) && (AUDIO_PIN_ALT != B7)
130// Timer 1 is not in use by Audio feature, Backlight can use it 130// Timer 1 is not in use by Audio feature, Backlight can use it
131# pragma message "Using hardware timer 1 with software PWM" 131# pragma message "Using hardware timer 1 with software PWM"
132# define HARDWARE_PWM 132# define HARDWARE_PWM
@@ -145,7 +145,7 @@
145 145
146# define OCIExA OCIE1A 146# define OCIExA OCIE1A
147# define OCRxx OCR1A 147# define OCRxx OCR1A
148#elif !defined(C6_AUDIO) && !defined(C5_AUDIO) && !defined(C4_AUDIO) 148#elif (AUDIO_PIN != C4) && (AUDIO_PIN != C5) && (AUDIO_PIN != C6)
149# pragma message "Using hardware timer 3 with software PWM" 149# pragma message "Using hardware timer 3 with software PWM"
150// Timer 3 is not in use by Audio feature, Backlight can use it 150// Timer 3 is not in use by Audio feature, Backlight can use it
151# define HARDWARE_PWM 151# define HARDWARE_PWM