F_CPU = ### INSERT PRESCALED SYSTEM CLOCK SPEED HERE, IN HZ ###\r
\r
\r
-# Input clock frequency.\r
+# USB controller master clock frequency.\r
# This will define a symbol, F_USB, in all source code files equal to the\r
# input clock frequency (before any prescaling is performed) in Hz. This value may\r
# differ from F_CPU, as the USB clock is often sourced from the same oscillator as\r
# clock rate.\r
#\r
# For the UC3 chips, this should be equal to 48MHz or 96MHz.\r
-F_USB = 48000000\r
+F_USB = ### INSERT CLOCK TO USB MODULE HERE, IN HZ ###\r
\r
\r
# Output format. (can be srec, ihex, binary)\r
OPT = s\r
\r
\r
-# Debugging level.\r
-DEBUG = 3\r
-\r
-\r
# List any extra directories to look for include files here.\r
# Each directory must be seperated by a space.\r
# Use forward slashes for directory separators.\r
CPPDEFS += $(LUFA_OPTS)\r
\r
\r
+# Debugging level.\r
+DEBUG = 3\r
+\r
\r
#---------------- Compiler Options C ----------------\r
# -g*: generate debugging information\r
# -Map: create map file\r
# --cref: add cross reference to map file\r
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref\r
-LDFLAGS += -Wl,--relax \r
-LDFLAGS += -Wl,--gc-sections\r
-LDFLAGS += -Wl,--rodata-writable\r
+LDFLAGS += -Wl,--gc-sections --rodata-writable\r
LDFLAGS += -Wl,--direct-data\r
#LDFLAGS += -T linker_script.x\r
\r
clean_doxygen:\r
rm -rf Documentation\r
\r
+checksource:\r
+ @for f in $(SRC) $(CPPSRC) $(ASRC); do \\r
+ if [ -f $$f ]; then \\r
+ echo "Found Source File: $$f" ; \\r
+ else \\r
+ echo "Source File Not Found: $$f" ; \\r
+ fi; done \r
+\r
+\r
# Create object files directory\r
$(shell mkdir $(OBJDIR) 2>/dev/null)\r
\r
# Listing of phony targets.\r
.PHONY : all begin finish end sizebefore sizeafter gccversion \\r
build elf hex lss sym doxygen clean clean_list clean_doxygen \\r
-dfu flip\r
+dfu flip checksource\r
\r