]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/MS_sculpt_mobile/rules.mk
Updates bootloader settings, adds file size check (#2029)
[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  MCU = atmega32u4
9  SCULPT_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done ; \
10                  avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
11
12 else
13  MCU = at90usb1286
14  SCULPT_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex
15 endif
16
17 F_CPU = 16000000
18 ARCH = AVR8
19 F_USB = $(F_CPU)
20
21 # Bootloader
22 #     This definition is optional, and if your keyboard supports multiple bootloaders of
23 #     different sizes, comment this out, and the correct address will be loaded 
24 #     automatically (+60). See bootloader.mk for all options.
25 ifdef ASTAR
26   BOOTLOADER = caterina
27 else
28   BOOTLOADER = atmel-dfu
29 endif
30
31 # Interrupt driven control endpoint task(+60)
32 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
33
34 #
35 BOOTMAGIC_ENABLE = no      # Virtual DIP switch configuration(+1000)
36 MOUSEKEY_ENABLE = no       # Mouse keys(+4700)
37 EXTRAKEY_ENABLE = yes       # Audio control and System control(+450)
38 CONSOLE_ENABLE = yes        # Console for debug(+400)
39 COMMAND_ENABLE = yes        # Commands for debug and configuration
40 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
41 SLEEP_LED_ENABLE = no       # Breathing sleep LED during USB suspend
42 # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
43 NKRO_ENABLE = no            # USB Nkey Rollover
44 BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality on B7 by default
45 MIDI_ENABLE = no            # MIDI controls
46 UNICODE_ENABLE = no         # Unicode
47 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
48 AUDIO_ENABLE = no           # Audio output on port C6
49
50
51 USB = /dev/cu.usbmodem14141
52
53  
54
55 # upload: build
56 #       $(SCULPT_UPLOAD_COMMAND)