aboutsummaryrefslogtreecommitdiff
path: root/quantum/mcu_selection.mk
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-08-09 07:09:54 +1000
committerDrashna Jaelre <drashna@live.com>2019-08-08 14:09:54 -0700
commit405dea01bef215a0b79524e4ff74364f1bcfeadf (patch)
treef265fc8731143dfe70b994ea63ae9685298f62b1 /quantum/mcu_selection.mk
parent2f6c068e0dd7abc3cec1bb72df0b1e96032246f8 (diff)
downloadqmk_firmware-405dea01bef215a0b79524e4ff74364f1bcfeadf.tar.gz
qmk_firmware-405dea01bef215a0b79524e4ff74364f1bcfeadf.zip
Add some defaults for ATmega32A to mcu_selection.mk (#6253)
* Add some defaults for ATmega32A to mcu_selection.mk * Remove boilerplate from templates * Relax INTERRUPT_CONTROL_ENDPOINT and PROGRAM_CMD * Apply suggestions from code review Co-Authored-By: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'quantum/mcu_selection.mk')
-rw-r--r--quantum/mcu_selection.mk26
1 files changed, 24 insertions, 2 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk
index fa6dc8b53..cca7720e9 100644
--- a/quantum/mcu_selection.mk
+++ b/quantum/mcu_selection.mk
@@ -1,4 +1,3 @@
1
2ifneq ($(findstring STM32F303, $(MCU)),) 1ifneq ($(findstring STM32F303, $(MCU)),)
3 ## chip/board settings 2 ## chip/board settings
4 # - the next two should match the directories in 3 # - the next two should match the directories in
@@ -54,7 +53,7 @@ ifneq (,$(filter $(MCU),atmega32u4 at90usb1286))
54 # LUFA specific 53 # LUFA specific
55 # 54 #
56 # Target architecture (see library "Board Types" documentation). 55 # Target architecture (see library "Board Types" documentation).
57 ARCH ?= AVR8 56 ARCH = AVR8
58 57
59 # Input clock frequency. 58 # Input clock frequency.
60 # This will define a symbol, F_USB, in all source code files equal to the 59 # This will define a symbol, F_USB, in all source code files equal to the
@@ -68,4 +67,27 @@ ifneq (,$(filter $(MCU),atmega32u4 at90usb1286))
68 # If no clock division is performed on the input clock inside the AVR (via the 67 # If no clock division is performed on the input clock inside the AVR (via the
69 # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. 68 # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
70 F_USB ?= $(F_CPU) 69 F_USB ?= $(F_CPU)
70
71 # Interrupt driven control endpoint task
72 ifeq (,$(filter $(NO_INTERRUPT_CONTROL_ENDPOINT),yes))
73 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
74 endif
75endif
76
77ifneq (,$(filter $(MCU),atmega32a))
78 PROTOCOL = VUSB
79
80 # Processor frequency.
81 # This will define a symbol, F_CPU, in all source code files equal to the
82 # processor frequency in Hz. You can then use this symbol in your source code to
83 # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
84 # automatically to create a 32-bit value in your source code.
85 F_CPU ?= 12000000
86
87 # unsupported features for now
88 NO_UART ?= yes
89 NO_SUSPEND_POWER_DOWN ?= yes
90
91 # Programming options
92 PROGRAM_CMD ?= ./util/atmega32a_program.py $(TARGET).hex
71endif 93endif