Skip to content

Commit

Permalink
include TinyUSB header for builtin libraries if selected
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed May 25, 2021
1 parent 69a2211 commit 9c2bdbc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/SAMD_AnalogCorrection/src/SAMD_AnalogCorrection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

#include "SAMD_AnalogCorrection.h"

#ifdef USE_TINYUSB
// For Serial when selecting TinyUSB
#include <Adafruit_TinyUSB.h>
#endif

void analogReadCorrection (int offset, uint16_t gain)
{
Adc *adc;
Expand Down
5 changes: 5 additions & 0 deletions libraries/SPI/SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
#include <wiring_private.h>
#include <assert.h>

#ifdef USE_TINYUSB
// For Serial when selecting TinyUSB
#include <Adafruit_TinyUSB.h>
#endif

#define SPI_IMODE_NONE 0
#define SPI_IMODE_EXTINT 1
#define SPI_IMODE_GLOBAL 2
Expand Down
5 changes: 5 additions & 0 deletions libraries/Wire/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ extern "C" {
#include <Arduino.h>
#include <wiring_private.h>

#ifdef USE_TINYUSB
// For Serial when selecting TinyUSB
#include <Adafruit_TinyUSB.h>
#endif

#include "Wire.h"

TwoWire::TwoWire(SERCOM * s, uint8_t pinSDA, uint8_t pinSCL)
Expand Down

0 comments on commit 9c2bdbc

Please sign in to comment.