diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index 32e99a3e1..8dcd4f0d0 100644 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -31,7 +31,7 @@ extern "C"{ #endif // __cplusplus // Include Atmel headers -#include "sam.h" +#include <samd.h> #define clockCyclesPerMicrosecond() ( SystemCoreClock / 1000000L ) #define clockCyclesToMicroseconds(a) ( ((a) * 1000L) / (SystemCoreClock / 1000L) ) diff --git a/cores/arduino/SERCOM.h b/cores/arduino/SERCOM.h index 6f855af19..cbc3a05de 100644 --- a/cores/arduino/SERCOM.h +++ b/cores/arduino/SERCOM.h @@ -19,7 +19,7 @@ #ifndef _SERCOM_CLASS_ #define _SERCOM_CLASS_ -#include "sam.h" +#include <samd.h> #define SERCOM_FREQ_REF 48000000 #define SERCOM_NVIC_PRIORITY ((1<<__NVIC_PRIO_BITS) - 1) diff --git a/cores/arduino/WVariant.h b/cores/arduino/WVariant.h index bbe2e0c4e..d44a0e2c1 100644 --- a/cores/arduino/WVariant.h +++ b/cores/arduino/WVariant.h @@ -19,7 +19,7 @@ #pragma once #include <stdint.h> -#include "sam.h" +#include <samd.h> #ifdef __cplusplus extern "C" { diff --git a/cores/arduino/cortex_handlers.c b/cores/arduino/cortex_handlers.c index a910d0889..e125b6ee8 100644 --- a/cores/arduino/cortex_handlers.c +++ b/cores/arduino/cortex_handlers.c @@ -16,7 +16,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <sam.h> +#include <samd.h> #include <variant.h> #include <stdio.h> diff --git a/cores/arduino/startup.c b/cores/arduino/startup.c index d66bfa8e6..3f990abb1 100644 --- a/cores/arduino/startup.c +++ b/cores/arduino/startup.c @@ -16,7 +16,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "sam.h" +#include <samd.h> #include "variant.h" #include <stdio.h> diff --git a/cores/arduino/wiring_private.h b/cores/arduino/wiring_private.h index be1babd92..a0fa152cf 100644 --- a/cores/arduino/wiring_private.h +++ b/cores/arduino/wiring_private.h @@ -27,7 +27,7 @@ extern "C" { #endif // Includes Atmel CMSIS -#include "sam.h" +#include <samd.h> int pinPeripheral( uint32_t ulPin, EPioType ulPeripheral ); diff --git a/platform.txt b/platform.txt index bdf152186..7c0b73992 100644 --- a/platform.txt +++ b/platform.txt @@ -28,8 +28,8 @@ version=1.8.9 compiler.warning_flags=-w compiler.warning_flags.none=-w compiler.warning_flags.default= -compiler.warning_flags.more=-Wall -Wno-expansion-to-defined -compiler.warning_flags.all=-Wall -Wextra -Wno-expansion-to-defined +compiler.warning_flags.more=-Wall +compiler.warning_flags.all=-Wall -Wextra # EXPERIMENTAL feature: optimization flags # - this is alpha and may be subject to change without notice