Go to the documentation of this file.
18 #ifndef USB_HOST_SHIELD_SETTINGS_H
19 #define USB_HOST_SHIELD_SETTINGS_H
27 #define ENABLE_UHS_DEBUGGING 0
33 #ifndef USB_HOST_SERIAL
34 #define USB_HOST_SERIAL Serial
42 #define USE_UHS_MEGA_ADK 0 // If you are using Arduino 1.5.5 or newer there is no need to do this manually
45 #define USE_UHS_BLACK_WIDDOW 0
48 #define USE_XMEM_SPI_LOCK 0
55 #define ENABLE_WII_IR_CAMERA 0
63 #ifndef MASS_MAX_SUPPORTED_LUN
64 #define MASS_MAX_SUPPORTED_LUN 8
70 #ifndef USE_SPI4TEENSY3
71 #define USE_SPI4TEENSY3 1
81 #if defined(ARDUINO) && ARDUINO >=100
85 #include <pins_arduino.h>
86 #include <avr/pgmspace.h>
91 #if defined(__GNUC__) && defined(__AVR__)
93 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
95 #if GCC_VERSION < 40602 // Test for GCC < 4.6.2
98 #define PROGMEM __attribute__((section(".progmem.data"))) // Workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734#c4
101 #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];})) // Copied from pgmspace.h in avr-libc source
107 #if !defined(DEBUG_USB_HOST) && ENABLE_UHS_DEBUGGING
108 #define DEBUG_USB_HOST
111 #if !defined(WIICAMERA) && ENABLE_WII_IR_CAMERA
119 #if !defined(XMEM_ACQUIRE_SPI)
120 #if USE_XMEM_SPI_LOCK || defined(USE_MULTIPLE_APP_API)
123 #define XMEM_ACQUIRE_SPI() (void(0))
124 #define XMEM_RELEASE_SPI() (void(0))
128 #if !defined(EXT_RAM) && defined(EXT_RAM_STACK) || defined(EXT_RAM_HEAP)
134 #if defined(CORE_TEENSY) && (defined(__MK20DX128__) || defined(__MK20DX256__))
135 #define USING_SPI4TEENSY3 USE_SPI4TEENSY3
137 #define USING_SPI4TEENSY3 0
140 #if defined(ARDUINO_SAM_DUE) && defined(__SAM3X8E__)