aboutsummaryrefslogtreecommitdiff
path: root/keyboards/atreus
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/atreus')
-rw-r--r--keyboards/atreus/Makefile89
-rw-r--r--keyboards/atreus/readme.md7
-rw-r--r--keyboards/atreus/rules.mk82
3 files changed, 88 insertions, 90 deletions
diff --git a/keyboards/atreus/Makefile b/keyboards/atreus/Makefile
index 5894d231f..4e2a6f00f 100644
--- a/keyboards/atreus/Makefile
+++ b/keyboards/atreus/Makefile
@@ -1,88 +1,3 @@
1 1ifndef MAKEFILE_INCLUDED
2
3ifdef TEENSY2
4 OPT_DEFS += -DATREUS_TEENSY2
5 ATREUS_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex
6else
7 OPT_DEFS += -DATREUS_ASTAR
8 OPT_DEFS += -DCATERINA_BOOTLOADER
9 ATREUS_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
10 avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
11endif
12
13# MCU name
14#MCU = at90usb1287
15MCU = atmega32u4
16
17# Processor frequency.
18# This will define a symbol, F_CPU, in all source code files equal to the
19# processor frequency in Hz. You can then use this symbol in your source code to
20# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
21# automatically to create a 32-bit value in your source code.
22#
23# This will be an integer division of F_USB below, as it is sourced by
24# F_USB after it has run through any CPU prescalers. Note that this value
25# does not *change* the processor frequency - it should merely be updated to
26# reflect the processor speed set externally so that the code can use accurate
27# software delays.
28F_CPU = 16000000
29
30
31#
32# LUFA specific
33#
34# Target architecture (see library "Board Types" documentation).
35ARCH = AVR8
36
37# Input clock frequency.
38# This will define a symbol, F_USB, in all source code files equal to the
39# input clock frequency (before any prescaling is performed) in Hz. This value may
40# differ from F_CPU if prescaling is used on the latter, and is required as the
41# raw input clock is fed directly to the PLL sections of the AVR for high speed
42# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
43# at the end, this will be done automatically to create a 32-bit value in your
44# source code.
45#
46# If no clock division is performed on the input clock inside the AVR (via the
47# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
48F_USB = $(F_CPU)
49
50# Interrupt driven control endpoint task(+60)
51OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
52
53
54# Boot Section Size in *bytes*
55# Teensy halfKay 512
56# Teensy++ halfKay 1024
57# Atmel DFU loader 4096
58# LUFA bootloader 4096
59# USBaspLoader 2048
60OPT_DEFS += -DBOOTLOADER_SIZE=4096
61
62
63# Build Options
64# comment out to disable the options.
65#
66#BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
67MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
68EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
69CONSOLE_ENABLE ?= yes # Console for debug(+400)
70COMMAND_ENABLE ?= yes # Commands for debug and configuration
71# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
72# SLEEP_LED_ENABLE ?= yes # Breathing sleep LED during USB suspend
73NKRO_ENABLE ?= yes # USB Nkey Rollover - not yet supported in LUFA
74# BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality
75# MIDI_ENABLE ?= YES # MIDI controls
76UNICODE_ENABLE ?= YES # Unicode
77# BLUETOOTH_ENABLE ?= yes # Enable Bluetooth with the Adafruit EZ-Key HID
78
79
80ifndef QUANTUM_DIR
81 include ../../Makefile 2 include ../../Makefile
82endif 3endif \ No newline at end of file
83
84USB ?= /dev/cu.usbmodem1411
85
86upload: build
87 $(ATREUS_UPLOAD_COMMAND)
88
diff --git a/keyboards/atreus/readme.md b/keyboards/atreus/readme.md
index 734f58f0f..a4077668e 100644
--- a/keyboards/atreus/readme.md
+++ b/keyboards/atreus/readme.md
@@ -174,13 +174,14 @@ Download or clone the whole firmware and navigate to the keyboards/planck folder
174Depending on which keymap you would like to use, you will have to compile slightly differently. 174Depending on which keymap you would like to use, you will have to compile slightly differently.
175 175
176### Default 176### Default
177To build with the default keymap, simply run `make`. 177To build with the default keymap, simply run `make default`.
178 178
179### Other Keymaps 179### Other Keymaps
180Several version of keymap are available in advance but you are recommended to define your favorite layout yourself. To define your own keymap create file named `<name>.c` and see keymap document (you can find in top readme.md) and existent keymap files. 180Several version of keymap are available in advance but you are recommended to define your favorite layout yourself. To define your own keymap create file named `<name>.c` and see keymap document (you can find in top readme.md) and existent keymap files.
181 181
182To build the firmware binary hex file with a keymap just do `make` with `KEYMAP` option like: 182To build the firmware binary hex file with a keymap just do `make` with a keymap like this:
183
183``` 184```
184$ make KEYMAP=[default|jack|<name>] 185$ make [default|jack|<name>]
185``` 186```
186Keymaps follow the format **__\<name\>.c__** and are stored in the `keymaps` folder. 187Keymaps follow the format **__\<name\>.c__** and are stored in the `keymaps` folder.
diff --git a/keyboards/atreus/rules.mk b/keyboards/atreus/rules.mk
new file mode 100644
index 000000000..d71f50bb2
--- /dev/null
+++ b/keyboards/atreus/rules.mk
@@ -0,0 +1,82 @@
1
2
3ifdef TEENSY2
4 OPT_DEFS += -DATREUS_TEENSY2
5 ATRUES_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex
6else
7 OPT_DEFS += -DATREUS_ASTAR
8 OPT_DEFS += -DCATERINA_BOOTLOADER
9 ATRUES_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
10 avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
11endif
12
13# MCU name
14#MCU = at90usb1287
15MCU = atmega32u4
16
17# Processor frequency.
18# This will define a symbol, F_CPU, in all source code files equal to the
19# processor frequency in Hz. You can then use this symbol in your source code to
20# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
21# automatically to create a 32-bit value in your source code.
22#
23# This will be an integer division of F_USB below, as it is sourced by
24# F_USB after it has run through any CPU prescalers. Note that this value
25# does not *change* the processor frequency - it should merely be updated to
26# reflect the processor speed set externally so that the code can use accurate
27# software delays.
28F_CPU = 16000000
29
30
31#
32# LUFA specific
33#
34# Target architecture (see library "Board Types" documentation).
35ARCH = AVR8
36
37# Input clock frequency.
38# This will define a symbol, F_USB, in all source code files equal to the
39# input clock frequency (before any prescaling is performed) in Hz. This value may
40# differ from F_CPU if prescaling is used on the latter, and is required as the
41# raw input clock is fed directly to the PLL sections of the AVR for high speed
42# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
43# at the end, this will be done automatically to create a 32-bit value in your
44# source code.
45#
46# If no clock division is performed on the input clock inside the AVR (via the
47# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
48F_USB = $(F_CPU)
49
50# Interrupt driven control endpoint task(+60)
51OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
52
53
54# Boot Section Size in *bytes*
55# Teensy halfKay 512
56# Teensy++ halfKay 1024
57# Atmel DFU loader 4096
58# LUFA bootloader 4096
59# USBaspLoader 2048
60OPT_DEFS += -DBOOTLOADER_SIZE=4096
61
62
63# Build Options
64# comment out to disable the options.
65#
66#BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
67MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
68EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
69CONSOLE_ENABLE ?= yes # Console for debug(+400)
70COMMAND_ENABLE ?= yes # Commands for debug and configuration
71# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
72# SLEEP_LED_ENABLE ?= yes # Breathing sleep LED during USB suspend
73NKRO_ENABLE ?= yes # USB Nkey Rollover - not yet supported in LUFA
74# BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality
75# MIDI_ENABLE ?= YES # MIDI controls
76UNICODE_ENABLE ?= YES # Unicode
77# BLUETOOTH_ENABLE ?= yes # Enable Bluetooth with the Adafruit EZ-Key HID
78
79USB ?= /dev/cu.usbmodem1411
80
81upload: build
82 $(ATRUES_UPLOAD_COMMAND) \ No newline at end of file