質問編集履歴

1

makefileの内容を記載しました。

2019/12/08 05:05

投稿

Duboa
Duboa

スコア5

test CHANGED
File without changes
test CHANGED
@@ -107,3 +107,33 @@
107
107
 
108
108
 
109
109
  https://qiita.com/Anaakikutsushit/items/b50b092c5ec43d83808a#%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%82%92%E3%83%9E%E3%82%A4%E3%82%B3%E3%83%B3%E3%81%AB%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%82%80
110
+
111
+
112
+
113
+ (追記)makefileの内容(一部抜粋)
114
+
115
+ ```
116
+
117
+ # Set the MCU accordingly to your device (e.g. at90usb1286 for a Teensy 2.0++, or atmega16u2 for an Arduino UNO R3)
118
+
119
+ MCU = atmega32u4
120
+
121
+ ARCH = AVR8
122
+
123
+ F_CPU = 16000000
124
+
125
+ F_USB = $(F_CPU)
126
+
127
+ OPTIMIZATION = s
128
+
129
+ TARGET = Joystick
130
+
131
+ SRC = $(TARGET).c Descriptors.c $(LUFA_SRC_USB)
132
+
133
+ LUFA_PATH = ./lufa/LUFA
134
+
135
+ CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
136
+
137
+ LD_FLAGS =
138
+
139
+ ```