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
83 #if defined(__GNUC__) && defined(__AVR__)
85 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
87 #if GCC_VERSION < 40602 // Test for GCC < 4.6.2
90 #define PROGMEM __attribute__((section(".progmem.data"))) // Workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734#c4
93 #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];})) // Copied from pgmspace.h in avr-libc source
99 #if !defined(DEBUG_USB_HOST) && ENABLE_UHS_DEBUGGING
100 #define DEBUG_USB_HOST
103 #if !defined(WIICAMERA) && ENABLE_WII_IR_CAMERA
111 #if !defined(XMEM_ACQUIRE_SPI)
112 #if USE_XMEM_SPI_LOCK || defined(USE_MULTIPLE_APP_API)
115 #define XMEM_ACQUIRE_SPI() (void(0))
116 #define XMEM_RELEASE_SPI() (void(0))
120 #if !defined(EXT_RAM) && defined(EXT_RAM_STACK) || defined(EXT_RAM_HEAP)
126 #if defined(CORE_TEENSY) && (defined(__MK20DX128__) || defined(__MK20DX256__))
127 #define USING_SPI4TEENSY3 USE_SPI4TEENSY3
129 #define USING_SPI4TEENSY3 0
132 #if ((defined(ARDUINO_SAM_DUE) && defined(__SAM3X8E__)) || defined(RBL_NRF51822) || defined(__ARDUINO_X86__) || ARDUINO >= 10600) && !USING_SPI4TEENSY3
135 #if defined(__PIC32MX__) || defined(__PIC32MZ__)
136 #include <../../../../hardware/pic32/libraries/SPI/SPI.h>