Skip to content
Snippets Groups Projects
Select Git revision
  • f2a596cdab63b916ebbc92d4468955a41cfbb41b
  • master default
  • neil
  • hpgl
  • sw-shawn-liu
  • ppa
  • fran
  • trotec-port
  • fs-hotfix
  • jake
  • ml-mods
  • fabmo-app
12 results

files.html

Blame
  • makefile NaN GiB
    #
    #             LUFA Library
    #     Copyright (C) Dean Camera, 2017.
    #
    #  dean [at] fourwalledcubicle [dot] com
    #           www.lufa-lib.org
    #
    # --------------------------------------
    #         LUFA Project Makefile.
    # --------------------------------------
    
    # Run "make help" for target help.
    
    MCU          = atmega16u2
    ARCH         = AVR8
    BOARD        = NONE
    F_CPU        = 16000000
    F_USB        = $(F_CPU)
    OPTIMIZATION = s
    TARGET       = USBtoSerial
    SRC          = $(TARGET).c Descriptors.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
    LUFA_PATH    = ./LUFA
    CC_FLAGS     = -DUSE_LUFA_CONFIG_HEADER -IConfig/
    LD_FLAGS     =
    
    # Default target
    all:
    
    # Include LUFA-specific DMBS extension modules
    DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
    include $(DMBS_LUFA_PATH)/lufa-sources.mk
    include $(DMBS_LUFA_PATH)/lufa-gcc.mk
    
    # Include common DMBS build system modules
    DMBS_PATH      ?= $(LUFA_PATH)/Build/DMBS/DMBS
    include $(DMBS_PATH)/core.mk
    include $(DMBS_PATH)/cppcheck.mk
    include $(DMBS_PATH)/doxygen.mk
    include $(DMBS_PATH)/dfu.mk
    include $(DMBS_PATH)/gcc.mk
    include $(DMBS_PATH)/hid.mk
    include $(DMBS_PATH)/avrdude.mk
    include $(DMBS_PATH)/atprogram.mk
    
    
    # Programming
    
    program-avrisp2: $(TARGET).hex
    	avrdude -p m16u2 -P usb -c avrisp2 -U flash:w:$(TARGET).hex
    
    program-avrisp2-fuses: $(TARGET).hex
    	avrdude -p m16u2 -P usb -c avrisp2 -U lfuse:w:0x5E:m
    
    program-usbtiny: $(TARGET).hex
    	avrdude -p m16u2 -P usb -c usbtiny -U flash:w:$(TARGET).hex
    
    program-usbtiny-fuses: $(TARGET).hex
    	avrdude -p m16u2 -P usb -c usbtiny -U lfuse:w:0x5E:m