|
10 | 10 | #include "Arduino.h" |
11 | 11 |
|
12 | 12 | #ifndef IN_FTDUINO_SIMPLE_LIB |
13 | | -#if defined(OUTPUT_DRIVER_MC33879A) |
14 | | -#warning "Building for MC33879A boards only" |
15 | | -#ifndef MC33879A_ONLY // user has to define this |
16 | | -#error "Please select 'Automatic' output driver or define MC33879A_ONLY when using MC33879A output driver." |
17 | | -#endif |
18 | | -#elif defined(OUTPUT_DRIVER_TLE94108EL) |
19 | | -#warning "Building for TLE94108EL boards only" |
20 | | -#ifndef TLE94108EL_ONLY // user has to define this |
21 | | -#error "Please select 'Automatic' output driver or define TLE94108EL_ONLY when using TLE94108EL output driver." |
22 | | -#endif |
23 | | -#elif defined(OUTPUT_DRIVER_AUTO) |
24 | | -// #warning "Building for output auto detection" |
| 13 | + #if defined(OUTPUT_DRIVER_MC33879A) |
| 14 | + #warning "Building for MC33879A boards only" |
| 15 | + #ifndef MC33879A_ONLY // user has to define this |
| 16 | + #error "Please select 'Automatic' output driver or define MC33879A_ONLY when using MC33879A output driver." |
| 17 | + #endif |
| 18 | + #elif defined(OUTPUT_DRIVER_TLE94108EL) |
| 19 | + #warning "Building for TLE94108EL boards only" |
| 20 | + #ifndef TLE94108EL_ONLY // user has to define this |
| 21 | + #error "Please select 'Automatic' output driver or define TLE94108EL_ONLY when using TLE94108EL output driver." |
| 22 | + #endif |
| 23 | + #elif defined(OUTPUT_DRIVER_AUTO) |
| 24 | + // #warning "Building for output auto detection" |
| 25 | + #else |
| 26 | + #warning "Error, no output driver configured" |
| 27 | + #endif |
25 | 28 | #else |
26 | | -#warning "Error, no output driver configured" |
27 | | -#endif |
| 29 | + // make sure WebUSB is being used with correct settings |
| 30 | + #if USB_VERSION == 0x210 && !defined(WebUSB_h) |
| 31 | + #error "Please include WebUSB.h if WebUSB is being used!" |
| 32 | + #endif |
28 | 33 | #endif |
29 | 34 |
|
30 | 35 | class Ftduino { |
|
0 commit comments