aboutsummaryrefslogtreecommitdiff
path: root/quantum/mcu_selection.mk
diff options
context:
space:
mode:
authoritsnoteasy <pyrosoma1@yahoo.ie>2020-06-10 22:23:11 +0100
committerGitHub <noreply@github.com>2020-06-10 22:23:11 +0100
commit7aa4cc9603b8cdb0ea3ede753eff7d07a86a18b0 (patch)
treec48255b3861208d8b85e341b68bbc827b5f06711 /quantum/mcu_selection.mk
parente26bc21d1452dcf04332d300a874dacc8d74862d (diff)
downloadqmk_firmware-7aa4cc9603b8cdb0ea3ede753eff7d07a86a18b0.tar.gz
qmk_firmware-7aa4cc9603b8cdb0ea3ede753eff7d07a86a18b0.zip
adds support for the atmega328 (#9043)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'quantum/mcu_selection.mk')
-rw-r--r--quantum/mcu_selection.mk18
1 files changed, 18 insertions, 0 deletions
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