Skip to content

Fix all warnings #583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ extern "C"{
#endif // __cplusplus

// Include Atmel headers
#undef LITTLE_ENDIAN
#include <samd.h>

#define clockCyclesPerMicrosecond() ( SystemCoreClock / 1000000L )
Expand Down
1 change: 0 additions & 1 deletion cores/arduino/USB/USBCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ bool USBDeviceClass::sendDescriptor(USBSetup &setup)
else if (setup.wValueL == ISERIAL) {
char name[ISERIAL_MAX_LEN];
memset(name, 0, sizeof(name));
uint8_t idx = 0;
#ifdef PLUGGABLE_USB_ENABLED
PluggableUSB().getShortName(name);
return sendStringDescriptor((uint8_t*)name, setup.wLength);
Expand Down
1 change: 0 additions & 1 deletion cores/arduino/USB/samd21_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "variant.h"
#include "USB_host.h"
#include "samd21_host.h"
#include "sam.h"
#include "wiring_private.h"

#define HOST_DEFINED
Expand Down
3 changes: 2 additions & 1 deletion libraries/SPI/SPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
// - endTransaction()
// - usingInterrupt()
// - SPISetting(clock, bitOrder, dataMode)
#define SPI_HAS_TRANSACTION 1
// #define SPI_HAS_TRANSACTION 1
// Every core implementing arduino API has SPI transaction

// SPI_HAS_NOTUSINGINTERRUPT means that SPI has notUsingInterrupt() method
#define SPI_HAS_NOTUSINGINTERRUPT 1
Expand Down