source: avrstuff/grip2hid/makefile@ d604513

main
Last change on this file since d604513 was d604513, checked in by Adrien Destugues <pulkomandy@…>, 3 years ago

Adjust software to the production PCB

  • Use the right MCU, port, etc.
  • Change USB IDs to V-USB shared one for USB Joysticks
  • Set vendor and product descriptions
  • Add makefile rule to program the AVR fuses
  • Property mode set to 100644
File size: 1.3 KB
Line 
1#
2# LUFA Library
3# Copyright (C) Dean Camera, 2021.
4#
5# dean [at] fourwalledcubicle [dot] com
6# www.lufa-lib.org
7#
8# --------------------------------------
9# LUFA Project Makefile.
10# --------------------------------------
11
12# Run "make help" for target help.
13
14MCU = at90usb162
15ARCH = AVR8
16BOARD =
17F_CPU = 8000000
18F_USB = $(F_CPU)
19OPTIMIZATION = s
20TARGET = Joystick
21SRC = $(TARGET).c Descriptors.c grip.cpp $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
22LUFA_PATH ?= lufa-LUFA-210130/LUFA
23CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
24LD_FLAGS =
25
26# Default target
27all:
28
29# Include LUFA-specific DMBS extension modules
30DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
31include $(DMBS_LUFA_PATH)/lufa-sources.mk
32include $(DMBS_LUFA_PATH)/lufa-gcc.mk
33
34# Include common DMBS build system modules
35DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
36include $(DMBS_PATH)/core.mk
37include $(DMBS_PATH)/cppcheck.mk
38include $(DMBS_PATH)/doxygen.mk
39include $(DMBS_PATH)/dfu.mk
40include $(DMBS_PATH)/gcc.mk
41include $(DMBS_PATH)/hid.mk
42include $(DMBS_PATH)/avrdude.mk
43include $(DMBS_PATH)/atprogram.mk
44
45PROG=usbasp
46flash: $(TARGET).hex
47 avrdude -u -c $(PROG) -p $(MCU) -Uflash:w:$^
48
49fuse:
50 avrdude -u -c $(PROG) -p $(MCU) -U efuse:w:0xf4:m -U hfuse:w:0xd9:m -U lfuse:w:0x5e:m
Note: See TracBrowser for help on using the repository browser.