mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Added error messages and updated some comments
This commit is contained in:
parent
41f9979a25
commit
6752a52b82
2 changed files with 10 additions and 8 deletions
|
@ -613,7 +613,7 @@ public:
|
||||||
// Arduino Leonardo pin numbers
|
// Arduino Leonardo pin numbers
|
||||||
|
|
||||||
#elif defined(CORE_TEENSY) && (defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__))
|
#elif defined(CORE_TEENSY) && (defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__))
|
||||||
// Teensy++ 2.0 pin numbers
|
// Teensy++ 1.0 and 2.0 pin numbers
|
||||||
// http://www.pjrc.com/teensy/pinout.html
|
// http://www.pjrc.com/teensy/pinout.html
|
||||||
#define P0 Pd0
|
#define P0 Pd0
|
||||||
#define P1 Pd1
|
#define P1 Pd1
|
||||||
|
@ -661,7 +661,7 @@ public:
|
||||||
#define P43 Pf5
|
#define P43 Pf5
|
||||||
#define P44 Pf6
|
#define P44 Pf6
|
||||||
#define P45 Pf7
|
#define P45 Pf7
|
||||||
// Teensy++ 2.0
|
// Teensy++ 1.0 and 2.0
|
||||||
|
|
||||||
#elif defined(ARDUINO_AVR_BALANDUINO) && (defined(__AVR_ATmega644__) || defined(__AVR_ATmega1284P__))
|
#elif defined(ARDUINO_AVR_BALANDUINO) && (defined(__AVR_ATmega644__) || defined(__AVR_ATmega1284P__))
|
||||||
// Balanduino pin numbers
|
// Balanduino pin numbers
|
||||||
|
@ -738,6 +738,9 @@ public:
|
||||||
#define P31 Pa7
|
#define P31 Pa7
|
||||||
// Sanguino
|
// Sanguino
|
||||||
|
|
||||||
|
#else
|
||||||
|
#error "Please define board in avrpins.h"
|
||||||
|
|
||||||
#endif // Arduino pin definitions
|
#endif // Arduino pin definitions
|
||||||
|
|
||||||
#endif // __AVR__
|
#endif // __AVR__
|
||||||
|
|
11
usbhost.h
11
usbhost.h
|
@ -44,15 +44,14 @@ public:
|
||||||
/* SPI pin definitions. see avrpins.h */
|
/* SPI pin definitions. see avrpins.h */
|
||||||
#if defined(__AVR_ATmega1280__) || (__AVR_ATmega2560__) || defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
|
#if defined(__AVR_ATmega1280__) || (__AVR_ATmega2560__) || defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
|
||||||
typedef SPi< Pb1, Pb2, Pb3, Pb0 > spi;
|
typedef SPi< Pb1, Pb2, Pb3, Pb0 > spi;
|
||||||
#endif
|
#elif defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__)
|
||||||
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__)
|
|
||||||
typedef SPi< Pb5, Pb3, Pb4, Pb2 > spi;
|
typedef SPi< Pb5, Pb3, Pb4, Pb2 > spi;
|
||||||
#endif
|
#elif defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)
|
||||||
#if defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)
|
|
||||||
typedef SPi< Pb7, Pb5, Pb6, Pb4 > spi;
|
typedef SPi< Pb7, Pb5, Pb6, Pb4 > spi;
|
||||||
#endif
|
#elif defined(__MK20DX128__)
|
||||||
#if defined(__MK20DX128__)
|
|
||||||
typedef SPi< P13, P11, P12, P10 > spi;
|
typedef SPi< P13, P11, P12, P10 > spi;
|
||||||
|
#else
|
||||||
|
#error "No SPI entry in usbhost.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
Loading…
Reference in a new issue