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
|
Rev | Line | |
---|
[703832c] | 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 |
|
---|
[d604513] | 14 | MCU = at90usb162
|
---|
[703832c] | 15 | ARCH = AVR8
|
---|
[d604513] | 16 | BOARD =
|
---|
[703832c] | 17 | F_CPU = 8000000
|
---|
| 18 | F_USB = $(F_CPU)
|
---|
| 19 | OPTIMIZATION = s
|
---|
| 20 | TARGET = Joystick
|
---|
| 21 | SRC = $(TARGET).c Descriptors.c grip.cpp $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
|
---|
| 22 | LUFA_PATH ?= lufa-LUFA-210130/LUFA
|
---|
| 23 | CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
|
---|
| 24 | LD_FLAGS =
|
---|
| 25 |
|
---|
| 26 | # Default target
|
---|
| 27 | all:
|
---|
| 28 |
|
---|
| 29 | # Include LUFA-specific DMBS extension modules
|
---|
| 30 | DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
|
---|
| 31 | include $(DMBS_LUFA_PATH)/lufa-sources.mk
|
---|
| 32 | include $(DMBS_LUFA_PATH)/lufa-gcc.mk
|
---|
| 33 |
|
---|
| 34 | # Include common DMBS build system modules
|
---|
| 35 | DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
|
---|
| 36 | include $(DMBS_PATH)/core.mk
|
---|
| 37 | include $(DMBS_PATH)/cppcheck.mk
|
---|
| 38 | include $(DMBS_PATH)/doxygen.mk
|
---|
| 39 | include $(DMBS_PATH)/dfu.mk
|
---|
| 40 | include $(DMBS_PATH)/gcc.mk
|
---|
| 41 | include $(DMBS_PATH)/hid.mk
|
---|
| 42 | include $(DMBS_PATH)/avrdude.mk
|
---|
| 43 | include $(DMBS_PATH)/atprogram.mk
|
---|
| 44 |
|
---|
[d604513] | 45 | PROG=usbasp
|
---|
[703832c] | 46 | flash: $(TARGET).hex
|
---|
| 47 | avrdude -u -c $(PROG) -p $(MCU) -Uflash:w:$^
|
---|
| 48 |
|
---|
[d604513] | 49 | fuse:
|
---|
| 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.