2013-06-12 05:12:45 +02:00
|
|
|
#
|
|
|
|
# These are set for a mega 1280 + quadram plus my serial patch.
|
|
|
|
# If you lack quadram, or want to disable LFN, just change _FS_TINY=1 _USE_LFN=0
|
|
|
|
#
|
|
|
|
# If your board is a mega 2560 uncomment the following two lines
|
|
|
|
# BOARD = mega2560
|
|
|
|
# PROGRAMMER = wiring
|
|
|
|
# ...and then comment out the following two lines
|
|
|
|
BOARD = mega
|
|
|
|
PROGRAMMER = arduino
|
|
|
|
|
|
|
|
# set your Arduino tty port here
|
|
|
|
PORT = /dev/ttyUSB0
|
|
|
|
|
2013-09-02 10:09:49 +02:00
|
|
|
EXTRA_FLAGS = -D _USE_LFN=3
|
|
|
|
|
|
|
|
# change to 0 if you have quadram to take advantage of caching FAT
|
|
|
|
EXTRA_FLAGS += -D _FS_TINY=1
|
|
|
|
|
|
|
|
|
|
|
|
EXTRA_FLAGS += -D _MAX_SS=512
|
|
|
|
|
2013-06-12 05:12:45 +02:00
|
|
|
|
|
|
|
# Don't worry if you don't have external RAM, xmem2 detects this situation.
|
|
|
|
# You *WILL* be wanting to get some kind of external ram on your mega in order to
|
|
|
|
# do anything that is intense.
|
|
|
|
EXTRA_FLAGS += -D EXT_RAM_STACK=1
|
|
|
|
EXTRA_FLAGS += -D EXT_RAM_HEAP=1
|
|
|
|
|
|
|
|
|
2013-09-02 10:09:49 +02:00
|
|
|
# These are no longer needed for the demo to work.
|
|
|
|
# In the event you need more ram, uncomment these 3 lines.
|
|
|
|
#EXTRA_FLAGS += -D DISABLE_SERIAL1
|
|
|
|
#EXTRA_FLAGS += -D DISABLE_SERIAL2
|
|
|
|
#EXTRA_FLAGS += -D DISABLE_SERIAL3
|
2013-06-12 05:12:45 +02:00
|
|
|
|
2013-09-02 10:09:49 +02:00
|
|
|
#
|
|
|
|
# Advanced debug on Serial3
|
|
|
|
#
|
2013-06-12 05:12:45 +02:00
|
|
|
|
2013-09-02 10:09:49 +02:00
|
|
|
# uncomment the next two to enable debug on Serial3
|
|
|
|
EXTRA_FLAGS += -D USB_HOST_SERIAL=Serial3
|
|
|
|
#EXTRA_FLAGS += -D DEBUG_USB_HOST
|
2013-06-12 05:12:45 +02:00
|
|
|
|
|
|
|
# The following are the libraries used.
|
|
|
|
LIB_DIRS =
|
2013-09-02 10:09:49 +02:00
|
|
|
LIB_DIRS += ../libraries/xmem
|
|
|
|
LIB_DIRS += ../libraries/USB_Host_Shield_2_0
|
|
|
|
LIB_DIRS += ../libraries/generic_storage
|
|
|
|
LIB_DIRS += ../libraries/RTClib
|
|
|
|
LIB_DIRS += $(ARD_HOME)/libraries/Wire
|
|
|
|
LIB_DIRS += $(ARD_HOME)/libraries/Wire/utility
|
2013-06-12 05:12:45 +02:00
|
|
|
# And finally, the part that brings everything together for you.
|
2013-09-02 10:09:49 +02:00
|
|
|
include ../Arduino_Makefile_master/_Makefile.master
|