]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/MS_sculpt_mobile/rules.mk
53769f81f40defc4f53077a12829c28a20c2e558
[qmk_firmware.git] / keyboards / handwired / MS_sculpt_mobile / rules.mk
1
2 ## Project specific files
3 SRC=  babblePaste.c
4
5
6 ifdef ASTAR
7   CFLAGS=-D ASTAR
8  OPT_DEFS += -DBOOTLOADER_SIZE=4096
9  MCU = atmega32u4
10  OPT_DEFS += -DCATERINA_BOOTLOADER
11  SCULPT_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done ; \
12                  avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
13
14 else
15  MCU = at90usb1286
16  OPT_DEFS += -DBOOTLOADER_SIZE=2048
17  SCULPT_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex
18 endif
19
20 F_CPU = 16000000
21 ARCH = AVR8
22 F_USB = $(F_CPU)
23 # Interrupt driven control endpoint task(+60)
24 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
25
26 #
27 BOOTMAGIC_ENABLE = no      # Virtual DIP switch configuration(+1000)
28 MOUSEKEY_ENABLE = no       # Mouse keys(+4700)
29 EXTRAKEY_ENABLE = yes       # Audio control and System control(+450)
30 CONSOLE_ENABLE = yes        # Console for debug(+400)
31 COMMAND_ENABLE = yes        # Commands for debug and configuration
32 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
33 SLEEP_LED_ENABLE = no       # Breathing sleep LED during USB suspend
34 # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
35 NKRO_ENABLE = no            # USB Nkey Rollover
36 BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality on B7 by default
37 MIDI_ENABLE = no            # MIDI controls
38 UNICODE_ENABLE = no         # Unicode
39 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
40 AUDIO_ENABLE = no           # Audio output on port C6
41
42
43 USB = /dev/cu.usbmodem14141
44
45  
46
47 # upload: build
48 #       $(SCULPT_UPLOAD_COMMAND)