Skip to content

Commit 228a51f

Browse files
committed
clean up
1 parent c260dad commit 228a51f

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

cores/nRF5/Arduino.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,13 @@ void resumeLoop(void);
5757
#include "pulse.h"
5858
#include "HardwarePWM.h"
5959
#include "utility/SoftwareTimer.h"
60-
6160
#include "Uart.h"
61+
62+
#ifdef USE_TINYUSB
63+
#include "Adafruit_USBD_Interface.h"
64+
#include "Adafruit_USBD_CDC.h"
65+
#endif
66+
6267
#endif
6368

6469
#include "delay.h"
@@ -68,10 +73,6 @@ void resumeLoop(void);
6873
#include "utility/utilities.h"
6974
#include "utility/AdaCallback.h"
7075

71-
#ifdef USE_TINYUSB
72-
#include "Adafruit_USBD_Interface.h"
73-
#include "Adafruit_USBD_CDC.h"
74-
#endif
7576

7677
// Include board variant
7778
#include "variant.h"

cores/nRF5/TinyUSB/Adafruit_USBD_CDC.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
#ifndef ADAFRUIT_USBD_CDC_H_
2626
#define ADAFRUIT_USBD_CDC_H_
2727

28-
#ifdef __cplusplus
29-
3028
#include "Adafruit_USBD_Interface.h"
3129
#include "Stream.h"
3230

@@ -73,5 +71,4 @@ class Adafruit_USBD_CDC : public Stream, public Adafruit_USBD_Interface
7371

7472
extern Adafruit_USBD_CDC Serial;
7573

76-
#endif // __cplusplus
7774
#endif

cores/nRF5/TinyUSB/Adafruit_USBD_Interface.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
#ifndef ADAFRUIT_USBD_INTERFACE_H_
2626
#define ADAFRUIT_USBD_INTERFACE_H_
2727

28-
#ifdef __cplusplus
29-
3028
class Adafruit_USBD_Interface
3129
{
3230
protected:
@@ -44,5 +42,3 @@ class Adafruit_USBD_Interface
4442
};
4543

4644
#endif
47-
48-
#endif

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ nordic.path={build.core.path}/nordic
6464

6565
# build.logger_flags and build.sysview_flags are intentionally empty,
6666
# to allow modification via a user's own boards.local.txt or platform.local.txt files.
67-
build.flags.nrf= -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 {compiler.optimization_flag} {build.debug_flags} {build.logger_flags} {build.sysview_flags} "-I{build.core.path}/cmsis/Core/Include" "-I{nordic.path}" "-I{nordic.path}/nrfx" "-I{nordic.path}/nrfx/hal" "-I{nordic.path}/nrfx/mdk" "-I{nordic.path}/nrfx/soc" "-I{nordic.path}/nrfx/drivers/include" "-I{nordic.path}/nrfx/drivers/src" "-I{nordic.path}/softdevice/{build.sd_name}_nrf52_{build.sd_version}_API/include" "-I{nordic.path}/softdevice/{build.sd_name}_nrf52_{build.sd_version}_API/include/nrf52" "-I{rtos.path}/Source/include" "-I{rtos.path}/config" "-I{rtos.path}/portable/GCC/nrf52" "-I{rtos.path}/portable/CMSIS/nrf52" "-I{build.core.path}/sysview/SEGGER" "-I{build.core.path}/sysview/Config" "-I{build.core.path}/TinyUSB" "-I{build.core.path}/TinyUSB/Adafruit_TinyUSB_ArduinoCore" "-I{build.core.path}/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src"
67+
build.flags.nrf= -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DDX_CC_TEE -DLFS_NAME_MAX=64 {compiler.optimization_flag} {build.debug_flags} {build.logger_flags} {build.sysview_flags} "-I{build.core.path}/cmsis/Core/Include" "-I{nordic.path}" "-I{nordic.path}/nrfx" "-I{nordic.path}/nrfx/hal" "-I{nordic.path}/nrfx/mdk" "-I{nordic.path}/nrfx/soc" "-I{nordic.path}/nrfx/drivers/include" "-I{nordic.path}/nrfx/drivers/src" "-I{nordic.path}/softdevice/{build.sd_name}_nrf52_{build.sd_version}_API/include" "-I{nordic.path}/softdevice/{build.sd_name}_nrf52_{build.sd_version}_API/include/nrf52" "-I{rtos.path}/Source/include" "-I{rtos.path}/config" "-I{rtos.path}/portable/GCC/nrf52" "-I{rtos.path}/portable/CMSIS/nrf52" "-I{build.core.path}/sysview/SEGGER" "-I{build.core.path}/sysview/Config" "-I{build.core.path}/TinyUSB"
6868

6969
# usb flags
7070
build.flags.usb= -DUSBCON -DUSE_TINYUSB -DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'

0 commit comments

Comments
 (0)