summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-04-02 22:23:57 +0100
committerFlorian Didron <fdidron@users.noreply.github.com>2020-06-12 17:00:27 +0900
commitfec6ee365cac76f3dbb9e81bd544eefe8f6dbc76 (patch)
treed4da10608dce4b2b312b92e5c774c8cab6fb8eae /quantum
parent65de39bb6d234a5527a3491f281b4a715de3e52b (diff)
Initial support for ATtiny85 (#8632)
* Initial support for ATtiny85 * Update mcu selection
Diffstat (limited to 'quantum')
-rw-r--r--quantum/config_common.h3
-rw-r--r--quantum/mcu_selection.mk15
2 files changed, 18 insertions, 0 deletions
diff --git a/quantum/config_common.h b/quantum/config_common.h
index b3abdee774..1ad9bfe0da 100644
--- a/quantum/config_common.h
+++ b/quantum/config_common.h
@@ -64,6 +64,9 @@
# define PINB_ADDRESS 0x3
# define PINC_ADDRESS 0x6
# define PIND_ADDRESS 0x9
+# elif defined(__AVR_ATtiny85__)
+# define ADDRESS_BASE 0x10
+# define PINB_ADDRESS 0x6
# else
# error "Pins are not defined"
# endif
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk
index e3b4c3f7e3..2fc3a8f4c0 100644
--- a/quantum/mcu_selection.mk
+++ b/quantum/mcu_selection.mk
@@ -290,3 +290,18 @@ ifneq (,$(filter $(MCU),atmega328p))
NO_UART ?= yes
NO_SUSPEND_POWER_DOWN ?= yes
endif
+
+ifneq (,$(filter $(MCU),attiny85))
+ PROTOCOL = VUSB
+
+ # Processor frequency.
+ # This will define a symbol, F_CPU, in all source code files equal to the
+ # processor frequency in Hz. You can then use this symbol in your source code to
+ # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
+ # automatically to create a 32-bit value in your source code.
+ F_CPU ?= 16500000
+
+ # unsupported features for now
+ NO_UART ?= yes
+ NO_SUSPEND_POWER_DOWN ?= yes
+endif