qmk

QMK Firmware
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

rules.mk (1496B)


      1 # project specific files
      2 
      3 ## chip/board settings
      4 # - the next two should match the directories in
      5 #   <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
      6 MCU_FAMILY = STM32
      7 MCU_SERIES = STM32F0xx
      8 
      9 # Linker script to use
     10 # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
     11 #   or <this_dir>/ld/
     12 MCU_LDSCRIPT = STM32F042x6
     13 
     14 # Startup code to use
     15 #  - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
     16 MCU_STARTUP = stm32f0xx
     17 
     18 # Board: it should exist either in <chibios>/os/hal/boards/
     19 #  or <this_dir>/boards
     20 BOARD = GENERIC_STM32_F042X6
     21 
     22 # Cortex version
     23 MCU  = cortex-m0
     24 
     25 # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
     26 ARMV = 6
     27 
     28 # Vector table for application
     29 # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
     30 # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
     31 #OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000
     32 OPT_DEFS =
     33 
     34 # Options to pass to dfu-util when flashing
     35 DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
     36 DFU_SUFFIX_ARGS = -p DF11 -v 0483
     37 
     38 # Build Options
     39 #   comment out to disable the options.
     40 #
     41 BACKLIGHT_ENABLE = no
     42 BOOTMAGIC_ENABLE = yes				# Virtual DIP switch configuration
     43 MOUSEKEY_ENABLE = yes				# Mouse keys
     44 EXTRAKEY_ENABLE = yes				# Audio control and System control
     45 CONSOLE_ENABLE = no					# Console for debug
     46 COMMAND_ENABLE = no    				# Commands for debug and configuration
     47 NKRO_ENABLE = yes					# USB Nkey Rollover
     48 NO_USB_STARTUP_CHECK = no         	# Disable initialization only when usb is plugged in