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


      1 # Set the LFK87 hardware version.
      2 #
      3 # RevA - Green PCB. at90usb1286 Only 3 exist
      4 # RevB - We don't talk about RevB
      5 # RevC - Black PCB. at90usb646 First public release
      6 #
      7 # Set to A or C
      8 LFK_REV = C
      9 
     10 ifeq ($(LFK_REV), A)
     11 	MCU = at90usb1286
     12 	OPT_DEFS += -DBOOTLOADER_SIZE=8192
     13 else
     14 	MCU = at90usb646
     15 	OPT_DEFS += -DBOOTLOADER_SIZE=4096
     16 endif
     17 OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV)
     18 
     19 # Processor frequency.
     20 #     This will define a symbol, F_CPU, in all source code files equal to the
     21 #     processor frequency in Hz. You can then use this symbol in your source code to
     22 #     calculate timings. Do NOT tack on a 'UL' at the end, this will be done
     23 #     automatically to create a 32-bit value in your source code.
     24 #
     25 #     This will be an integer division of F_USB below, as it is sourced by
     26 #     F_USB after it has run through any CPU prescalers. Note that this value
     27 #     does not *change* the processor frequency - it should merely be updated to
     28 #     reflect the processor speed set externally so that the code can use accurate
     29 #     software delays.
     30 F_CPU = 16000000
     31 
     32 
     33 #
     34 # LUFA specific
     35 #
     36 # Target architecture (see library "Board Types" documentation).
     37 ARCH = AVR8
     38 
     39 # Input clock frequency.
     40 #     This will define a symbol, F_USB, in all source code files equal to the
     41 #     input clock frequency (before any prescaling is performed) in Hz. This value may
     42 #     differ from F_CPU if prescaling is used on the latter, and is required as the
     43 #     raw input clock is fed directly to the PLL sections of the AVR for high speed
     44 #     clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
     45 #     at the end, this will be done automatically to create a 32-bit value in your
     46 #     source code.
     47 #
     48 #     If no clock division is performed on the input clock inside the AVR (via the
     49 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
     50 F_USB = $(F_CPU)
     51 
     52 # Interrupt driven control endpoint task(+60)
     53 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
     54 
     55 # Extra source files for IS3731 lighting
     56 SRC = TWIlib.c issi.c lighting.c
     57 
     58 ifeq ($(strip $(ISSI_ENABLE)), yes)
     59     # TMK_COMMON_DEFS += -DISSI_ENABLE
     60 endif