From 79da1b1419fe3c1b6a843a6d4b64c7cfc3b893a5 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Wed, 1 Mar 2023 09:06:14 +0100 Subject: [PATCH] Provide error message when trying to compile this library for the M4 core. --- src/Arduino_AdvancedAnalog.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Arduino_AdvancedAnalog.h b/src/Arduino_AdvancedAnalog.h index f654650..a4fadbd 100644 --- a/src/Arduino_AdvancedAnalog.h +++ b/src/Arduino_AdvancedAnalog.h @@ -24,6 +24,10 @@ * INCLUDE **************************************************************************************/ +#ifdef ARDUINO_PORTENTA_H7_M4 +# error "This library on works on the M7 core of any STM32H747 based board (Portenta H7, Giga, X8)." +#endif + #include "AdvancedADC.h" #include "AdvancedDAC.h"