aboutsummaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
Diffstat (limited to 'quantum')
-rw-r--r--quantum/backlight/backlight_avr.c2
-rw-r--r--quantum/config_common.h2
-rw-r--r--quantum/mcu_selection.mk18
3 files changed, 20 insertions, 2 deletions
diff --git a/quantum/backlight/backlight_avr.c b/quantum/backlight/backlight_avr.c
index ce13f1118..b3e882ffe 100644
--- a/quantum/backlight/backlight_avr.c
+++ b/quantum/backlight/backlight_avr.c
@@ -103,7 +103,7 @@
103# define COMxx1 COM1A1 103# define COMxx1 COM1A1
104# define OCRxx OCR1A 104# define OCRxx OCR1A
105# endif 105# endif
106#elif defined(__AVR_ATmega328P__) && (BACKLIGHT_PIN == B1 || BACKLIGHT_PIN == B2) 106#elif (defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328__)) && (BACKLIGHT_PIN == B1 || BACKLIGHT_PIN == B2)
107# define HARDWARE_PWM 107# define HARDWARE_PWM
108# define ICRx ICR1 108# define ICRx ICR1
109# define TCCRxA TCCR1A 109# define TCCRxA TCCR1A
diff --git a/quantum/config_common.h b/quantum/config_common.h
index 9861c8678..9b28e8d63 100644
--- a/quantum/config_common.h
+++ b/quantum/config_common.h
@@ -58,7 +58,7 @@
58# define PINC_ADDRESS 0x3 58# define PINC_ADDRESS 0x3
59# define PINB_ADDRESS 0x6 59# define PINB_ADDRESS 0x6
60# define PINA_ADDRESS 0x9 60# define PINA_ADDRESS 0x9
61# elif defined(__AVR_ATmega328P__) 61# elif defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328__)
62# define ADDRESS_BASE 0x00 62# define ADDRESS_BASE 0x00
63# define PINB_ADDRESS 0x3 63# define PINB_ADDRESS 0x3
64# define PINC_ADDRESS 0x6 64# define PINC_ADDRESS 0x6
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk
index 33de162bb..a1d2c5fbf 100644
--- a/quantum/mcu_selection.mk
+++ b/quantum/mcu_selection.mk
@@ -288,6 +288,24 @@ ifneq (,$(filter $(MCU),atmega328p))
288 NO_SUSPEND_POWER_DOWN ?= yes 288 NO_SUSPEND_POWER_DOWN ?= yes
289endif 289endif
290 290
291ifneq (,$(filter $(MCU),atmega328))
292 # MCU name for avrdude
293 AVRDUDE_MCU = m328
294
295 PROTOCOL = VUSB
296
297 # Processor frequency.
298 # This will define a symbol, F_CPU, in all source code files equal to the
299 # processor frequency in Hz. You can then use this symbol in your source code to
300 # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
301 # automatically to create a 32-bit value in your source code.
302 F_CPU ?= 16000000
303
304 # unsupported features for now
305 NO_UART ?= yes
306 NO_SUSPEND_POWER_DOWN ?= yes
307endif
308
291ifneq (,$(filter $(MCU),attiny85)) 309ifneq (,$(filter $(MCU),attiny85))
292 PROTOCOL = VUSB 310 PROTOCOL = VUSB
293 311