diff --git a/src/Arduino_AdvancedAnalog.h b/src/Arduino_AdvancedAnalog.h index 6aec2b3..f654650 100644 --- a/src/Arduino_AdvancedAnalog.h +++ b/src/Arduino_AdvancedAnalog.h @@ -24,10 +24,6 @@ * INCLUDE **************************************************************************************/ -#ifdef ARDUINO_PORTENTA_H7_M4 -# error "This library only works on the M7 core of any STM32H747 based board (Portenta H7, Giga)." -#endif - #include "AdvancedADC.h" #include "AdvancedDAC.h" diff --git a/src/DMABuffer.h b/src/DMABuffer.h index ac85ccd..0f495df 100644 --- a/src/DMABuffer.h +++ b/src/DMABuffer.h @@ -92,15 +92,19 @@ template class DMABuffer { } void flush() { + #if __DCACHE_PRESENT if (ptr) { SCB_CleanDCache_by_Addr(data(), bytes()); } + #endif } void invalidate() { + #if __DCACHE_PRESENT if (ptr) { SCB_InvalidateDCache_by_Addr(data(), bytes()); } + #endif } uint32_t timestamp() {