Skip to content

Commit 23f0b09

Browse files
committed
add tinyusb header across libraries
1 parent 846053a commit 23f0b09

File tree

12 files changed

+18
-5
lines changed

12 files changed

+18
-5
lines changed

libraries/Adafruit_LittleFS/src/Adafruit_LittleFS.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#include <string.h>
2727
#include "Adafruit_LittleFS.h"
2828

29+
#include <Adafruit_TinyUSB.h> // for Serial
30+
2931
using namespace Adafruit_LittleFS_Namespace;
3032

3133

libraries/Bluefruit52Lib/src/bluefruit.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#include "bluefruit.h"
3838
#include "utility/bonding.h"
3939

40+
#include <Adafruit_TinyUSB.h> // for Serial
41+
4042
#ifndef CFG_BLE_TX_POWER_LEVEL
4143
#define CFG_BLE_TX_POWER_LEVEL 0
4244
#endif
@@ -1051,7 +1053,7 @@ void AdafruitBluefruit::printInfo(void)
10511053

10521054
Periph.printInfo();
10531055

1054-
/*------------- List the paried device -------------*/
1056+
/*------------- List the paired devices -------------*/
10551057
if ( _prph_count )
10561058
{
10571059
logger.printf(title_fmt, "Peripheral Paired Devices");

libraries/Bluefruit52Lib/src/bluefruit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
#include <Arduino.h>
2828
#include "bluefruit_common.h"
29-
#include <Adafruit_TinyUSB.h> // for Serial
3029

3130
#define CFG_ADV_BLINKY_INTERVAL 500
3231

libraries/PDM/src/PDM.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#include "PDM.h"
2424
#include <hal/nrf_pdm.h>
2525

26+
#include <Adafruit_TinyUSB.h> // for Serial
27+
2628
#define DEFAULT_PDM_GAIN 20
2729
#define PDM_IRQ_PRIORITY 7
2830

libraries/RotaryEncoder/RotaryEncoder.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
#include "RotaryEncoder.h"
3838

39+
#include <Adafruit_TinyUSB.h> // for Serial
40+
3941
class HwRotaryEncoder RotaryEncoder;
4042

4143
extern "C"

libraries/SPI/SPI.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include <wiring_private.h>
2929
#include <assert.h>
3030

31+
#include <Adafruit_TinyUSB.h> // for Serial
32+
3133
SPIClass::SPIClass(NRF_SPIM_Type *p_spi, uint8_t uc_pinMISO, uint8_t uc_pinSCK, uint8_t uc_pinMOSI)
3234
{
3335
initialized = false;

libraries/SPI/SPI.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#define _SPI_H_INCLUDED
2323

2424
#include <Arduino.h>
25-
#include <Adafruit_TinyUSB.h> // for Serial
2625
#include "nrfx_spim.h"
2726

2827
// SPI_HAS_TRANSACTION means SPI has

libraries/SPI/SPI_nrf52832.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <wiring_private.h>
2929
#include <assert.h>
3030

31+
#include <Adafruit_TinyUSB.h> // for Serial
3132

3233
const SPISettings DEFAULT_SPI_SETTINGS = SPISettings();
3334

libraries/Servo/src/nrf52/Servo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#include <Arduino.h>
2525
#include <Servo.h>
2626

27+
#include <Adafruit_TinyUSB.h> // for Serial
28+
2729
enum
2830
{
2931
SERVO_TOKEN = 0x76726553 // 'S' 'e' 'r' 'v'

libraries/SoftwareSerial/SoftwareSerial.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#include <variant.h>
2424
#include <WInterrupts.h>
2525

26+
#include <Adafruit_TinyUSB.h> // for Serial
27+
2628
SoftwareSerial *SoftwareSerial::active_object = 0;
2729
char SoftwareSerial::_receive_buffer[_SS_MAX_RX_BUFF];
2830
volatile uint8_t SoftwareSerial::_receive_buffer_tail = 0;

libraries/Wire/Wire.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include "variant.h"
2828
#include "RingBuffer.h"
2929

30-
#include <Adafruit_TinyUSB.h> // for Serial
31-
3230
// WIRE_HAS_END means Wire has end()
3331
#define WIRE_HAS_END 1
3432

libraries/Wire/Wire_nRF52.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ extern "C" {
2929

3030
#include "Wire.h"
3131

32+
#include <Adafruit_TinyUSB.h> // for Serial
33+
3234
static volatile uint32_t* pincfg_reg(uint32_t pin)
3335
{
3436
NRF_GPIO_Type * port = nrf_gpio_pin_port_decode(&pin);

0 commit comments

Comments
 (0)