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 (1883B)


      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
     29 #     This definition is optional, and if your keyboard supports multiple bootloaders of
     30 #     different sizes, comment this out, and the correct address will be loaded 
     31 #     automatically (+60). See bootloader.mk for all options.
     32 BOOTLOADER = bootloadHID
     33 
     34 # build options
     35 BOOTMAGIC_ENABLE = yes
     36 MOUSEKEY_ENABLE = no
     37 EXTRAKEY_ENABLE = yes
     38 CONSOLE_ENABLE = no
     39 COMMAND_ENABLE = yes
     40 BACKLIGHT_ENABLE = yes
     41 RGBLIGHT_ENABLE = yes
     42 RGBLIGHT_CUSTOM_DRIVER = yes
     43 NKRO_ENABLE = no
     44 # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
     45 
     46 
     47 DISABLE_WS2812 = no
     48 
     49 KEY_LOCK_ENABLE = yes
     50 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
     51 SLEEP_LED_ENABLE = no    # Breathing sleep LED during USB suspend
     52 
     53 
     54 #OPT_DEFS = -DDEBUG_LEVEL=0
     55 
     56 # custom matrix setup
     57 CUSTOM_MATRIX = yes
     58 SRC = matrix.c i2c.c backlight.c
     59 
     60 
     61 # programming options
     62 PROGRAM_CMD = ./util/atmega32a_program.py $(TARGET).hex