]> git.gir.st - tmk_keyboard.git/blob - protocol/usb_hid/USB_Host_Shield_2.0/examples/testusbhostFAT/Makefile
Squashed 'tmk_core/' changes from caca2c0..dc0e46e
[tmk_keyboard.git] / protocol / usb_hid / USB_Host_Shield_2.0 / examples / testusbhostFAT / Makefile
1 #
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
4 #
5 # If your board is a mega 2560 comment out the following two lines
6 BOARD = mega
7
8 BOARD_SUB = mega.menu.cpu.atmega1280
9 PROGRAMMER = arduino
10
11 # ...and then uncomment out the following two lines
12 #BOARD_SUB = mega.menu.cpu.atmega2560
13 #PROGRAMMER = wiring
14
15 #BOARD = teensypp2
16 #BOARD = teensy3
17 #BOARD = teensy31
18
19 # set your Arduino tty port here
20 PORT = /dev/ttyUSB0
21
22 EXTRA_FLAGS = -D _USE_LFN=3
23
24 # change to 0 if you have quadram to take advantage of caching FAT
25 EXTRA_FLAGS += -D _FS_TINY=1
26
27
28 EXTRA_FLAGS += -D _MAX_SS=512
29
30
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
36
37
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
43
44 #
45 # Advanced debug on Serial3
46 #
47
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
51
52 # The following are the libraries used.
53 LIB_DIRS += ../../
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
62
63 # And finally, the part that brings everything together for you.
64 include Arduino_Makefile_master/_Makefile.master
Imprint / Impressum