Go to the documentation of this file.
8 #ifndef USB_HOST_SHIELD_SETTINGS_H
9 #define USB_HOST_SHIELD_SETTINGS_H
17 #define ENABLE_UHS_DEBUGGING 0
23 #ifndef USB_HOST_SERIAL
24 #define USB_HOST_SERIAL Serial
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
35 #define USE_UHS_BLACK_WIDDOW 0
38 #define USE_XMEM_SPI_LOCK 0
45 #define ENABLE_WII_IR_CAMERA 0
53 #ifndef MASS_MAX_SUPPORTED_LUN
54 #define MASS_MAX_SUPPORTED_LUN 8
60 #ifndef USE_SPI4TEENSY3
61 #define USE_SPI4TEENSY3 1
72 #if defined(ARDUINO) && ARDUINO >=100
76 #include <pins_arduino.h>
77 #include <avr/pgmspace.h>
84 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
86 #if GCC_VERSION < 40602 // Test for GCC < 4.6.2
89 #define PROGMEM __attribute__((section(".progmem.data"))) // Workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734#c4
92 #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];})) // Copied from pgmspace.h in avr-libc source
98 #if !defined(DEBUG_USB_HOST) && ENABLE_UHS_DEBUGGING
99 #define DEBUG_USB_HOST
102 #if !defined(WIICAMERA) && ENABLE_WII_IR_CAMERA
106 #if USE_XMEM_SPI_LOCK | defined(USE_MULTIPLE_APP_API)
109 #define XMEM_ACQUIRE_SPI() (void(0))
110 #define XMEM_RELEASE_SPI() (void(0))
113 #if defined(__MK20DX128__) || defined(__MK20DX256__)
114 #define USING_SPI4TEENSY3 USE_SPI4TEENSY3
116 #define USING_SPI4TEENSY3 0