]>
git.gir.st - tmk_keyboard.git/blob - protocol/usb_hid/USB_Host_Shield_2.0/examples/testusbhostFAT/Makefile
2 # These are set for a mega 1280 + quadram plus my serial patch.
3 # If you lack quadram, or want to disable LFN, just change _FS_TINY=1 _USE_LFN=0
5 # If your board is a mega 2560 comment out the following two lines
8 BOARD_SUB
= mega.menu.cpu.atmega1280
11 # ...and then uncomment out the following two lines
12 #BOARD_SUB = mega.menu.cpu.atmega2560
19 # set your Arduino tty port here
22 EXTRA_FLAGS
= -D _USE_LFN
=3
24 # change to 0 if you have quadram to take advantage of caching FAT
25 EXTRA_FLAGS
+= -D _FS_TINY
=1
28 EXTRA_FLAGS
+= -D _MAX_SS
=512
31 # Don't worry if you don't have external RAM, xmem2 detects this situation.
32 # You *WILL* be wanting to get some kind of external ram on your mega in order to
33 # do anything that is intense.
34 EXTRA_FLAGS
+= -D EXT_RAM_STACK
=1
35 EXTRA_FLAGS
+= -D EXT_RAM_HEAP
=1
38 # These are no longer needed for the demo to work.
39 # In the event you need more ram, uncomment these 3 lines.
40 #EXTRA_FLAGS += -D DISABLE_SERIAL1
41 #EXTRA_FLAGS += -D DISABLE_SERIAL2
42 #EXTRA_FLAGS += -D DISABLE_SERIAL3
45 # Advanced debug on Serial3
48 # uncomment the next two to enable debug on Serial3
49 EXTRA_FLAGS
+= -D USB_HOST_SERIAL
=Serial3
50 #EXTRA_FLAGS += -D DEBUG_USB_HOST
52 # The following are the libraries used.
54 LIB_DIRS
+= ..
/testusbhostFAT
/xmem2
55 LIB_DIRS
+= ..
/testusbhostFAT
/generic_storage
56 LIB_DIRS
+= ..
/testusbhostFAT
/RTClib
57 LIB_DIRS
+= $(ARD_HOME
)/libraries
/Wire
58 LIB_DIRS
+= $(ARD_HOME
)/libraries
/Wire
/utility
59 LIB_DIRS
+= $(ARD_HOME
)/hardware
/arduino
/$(BUILD_ARCH
)/libraries
/Wire
60 LIB_DIRS
+= $(ARD_HOME
)/hardware
/arduino
/$(BUILD_ARCH
)/libraries
/Wire
/utility
61 LIB_DIRS
+= $(ARD_HOME
)/hardware
/arduino
/$(BUILD_ARCH
)/libraries
/SPI
63 # And finally, the part that brings everything together for you.
64 include Arduino_Makefile_master
/_Makefile.master