qmk

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

rules.mk (1840B)


      1 # Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
      2 # Modified 2018 Wayne Jones (WarmCatUK) <waynekjones@gmail.com>
      3 
      4 # This program is free software: you can redistribute it and/or modify
      5 # it under the terms of the GNU General Public License as published by
      6 # the Free Software Foundation, either version 2 of the License, or
      7 # (at your option) any later version.
      8 #
      9 # This program is distributed in the hope that it will be useful,
     10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12 # GNU General Public License for more details.
     13 #
     14 # You should have received a copy of the GNU General Public License
     15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
     16 
     17 # MCU name
     18 MCU = atmega32a
     19 PROTOCOL = VUSB
     20 
     21 # unsupported features for now
     22 NO_UART = yes
     23 NO_SUSPEND_POWER_DOWN = yes
     24 
     25 # processor frequency
     26 F_CPU = 12000000
     27 
     28 # Bootloader selection
     29 #   Teensy       halfkay
     30 #   Pro Micro    caterina
     31 #   Atmel DFU    atmel-dfu
     32 #   LUFA DFU     lufa-dfu
     33 #   QMK DFU      qmk-dfu
     34 #   atmega32a    bootloadHID
     35 BOOTLOADER = bootloadHID
     36 
     37 # build options
     38 BOOTMAGIC_ENABLE = yes
     39 MOUSEKEY_ENABLE = no
     40 EXTRAKEY_ENABLE = yes
     41 CONSOLE_ENABLE = no
     42 COMMAND_ENABLE = yes
     43 BACKLIGHT_ENABLE = yes
     44 RGBLIGHT_ENABLE = yes
     45 RGBLIGHT_CUSTOM_DRIVER = yes
     46 NKRO_ENABLE = no
     47 # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
     48 
     49 
     50 DISABLE_WS2812 = no
     51 
     52 KEY_LOCK_ENABLE = yes
     53 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
     54 SLEEP_LED_ENABLE = no    # Breathing sleep LED during USB suspend
     55 
     56 
     57 #OPT_DEFS = -DDEBUG_LEVEL=0
     58 
     59 # custom matrix setup
     60 CUSTOM_MATRIX = yes
     61 SRC = matrix.c i2c.c backlight.c
     62 
     63 # programming options
     64 PROGRAM_CMD = ./util/atmega32a_program.py $(TARGET).hex
     65 
     66 LAYOUTS = ortho_5x12