USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
settings.h
Go to the documentation of this file.
1 /*
2  * File: settings.h
3  * Author: xxxajk
4  *
5  * Created on September 23, 2013, 12:00 AM
6  */
7 
8 #ifndef USB_HOST_SHIELD_SETTINGS_H
9 #define USB_HOST_SHIELD_SETTINGS_H
10 #include "macros.h"
11 
13 // DEBUGGING
15 
16 /* Set this to 1 to activate serial debugging */
17 #define ENABLE_UHS_DEBUGGING 0
18 
19 /* This can be used to select which serial port to use for debugging if
20  * multiple serial ports are available.
21  * For example Serial3.
22  */
23 #ifndef USB_HOST_SERIAL
24 #define USB_HOST_SERIAL Serial
25 #endif
26 
28 // Manual board activation
30 
31 /* Set this to 1 if you are using an Arduino Mega ADK board with MAX3421e built-in */
32 #define USE_UHS_MEGA_ADK 0 // If you are using Arduino 1.5.5 or newer there is no need to do this manually
33 
34 /* Set this to 1 if you are using a Black Widdow */
35 #define USE_UHS_BLACK_WIDDOW 0
36 
37 /* Set this to a one to use the xmem2 lock. This is needed for multitasking and threading */
38 #define USE_XMEM_SPI_LOCK 0
39 
41 // MASS STORAGE
43 // <<<<<<<<<<<<<<<< IMPORTANT >>>>>>>>>>>>>>>
44 // Set this to 1 to support single LUN devices, and save RAM. -- I.E. thumb drives.
45 // Each LUN needs ~13 bytes to be able to track the state of each unit.
46 #ifndef MASS_MAX_SUPPORTED_LUN
47 #define MASS_MAX_SUPPORTED_LUN 8
48 #endif
49 
51 // AUTOMATIC Settings
53 
54 // No user serviceable parts below this line.
55 // DO NOT change anything below here unless you are a developer!
56 
57 #if !defined(DEBUG_USB_HOST) && ENABLE_UHS_DEBUGGING
58 #define DEBUG_USB_HOST
59 #endif
60 
61 // When will we drop support for the older bug-ridden stuff?
62 #if defined(ARDUINO) && ARDUINO >=100
63 #include <Arduino.h>
64 #else
65 #include <WProgram.h>
66 // I am not sure what WProgram.h does not include, so these are here. --xxxajk
67 #include <pins_arduino.h>
68 #include <avr/pgmspace.h>
69 #include <avr/io.h>
70 #endif
71 
72 #if USE_XMEM_SPI_LOCK | defined(USE_MULTIPLE_APP_API)
73 #include <xmem.h>
74 #else
75 #define XMEM_ACQUIRE_SPI() (void(0))
76 #define XMEM_RELEASE_SPI() (void(0))
77 #endif
78 
79 #endif /* SETTINGS_H */