Hello LUFA users! I'm new here (this is my first time ever trying to program something other than a PC or smart phone). :)
I'm trying to set up a LUFA project to make convert an Arduino Uno R3 into a USB device (e.g. a "keyboard"). I'm in Arch Linux.
I'm trying to 'make' the project and it says things like:
./LUFA/Drivers/USB/Core/AVR8/USBController_AVR8.h:84:5: error: #error F_USB is not defined. You must define F_USB to the frequency of the unprescaled USB controller clock in your project makefile.
Descriptors.h:43:40: fatal error: LUFA/Drivers/USB/Class/HID.h: No such file or directory
#include <LUFA/Drivers/USB/Class/HID.h>
^
I downloaded it, but it doesn't come with the LUFA library, so I grabbed the LUFA lib from github, then I made a symlink to it in the project folder
ln -s ~/path/to/lufa/LUFA ~/path/to/arduino-keyboard-0.3/LUFA
so that the library is available to the project (e.g. Descriptors.h looks for the LUFA folder in the same folder that it's in).
Then I modified a couple of things in the makefile. It complained about ARCH not being defined, so I added ARCH = AVR8 and that solved that problem. Then it started complaining about F_USB not being defined, but adding F_USB = $(F_CPU) to the makefile doesn't fix the error. That's where I'm stuck.
See lines 65, 71, and 115.
Why does it say that F_USB isn't defined? Also, where's HID.h? Was that part of LUFA before? Or do I need to get that from somewhere?