Skip to content

Commit a0aa544

Browse files
authored
Fix library build for the M4 core. (#26)
1 parent 3764fb4 commit a0aa544

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Arduino_AdvancedAnalog.h

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
* INCLUDE
2525
**************************************************************************************/
2626

27-
#ifdef ARDUINO_PORTENTA_H7_M4
28-
# error "This library only works on the M7 core of any STM32H747 based board (Portenta H7, Giga)."
29-
#endif
30-
3127
#include "AdvancedADC.h"
3228
#include "AdvancedDAC.h"
3329

src/DMABuffer.h

+4
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,19 @@ template <class T, size_t A=__SCB_DCACHE_LINE_SIZE> class DMABuffer {
9292
}
9393

9494
void flush() {
95+
#if __DCACHE_PRESENT
9596
if (ptr) {
9697
SCB_CleanDCache_by_Addr(data(), bytes());
9798
}
99+
#endif
98100
}
99101

100102
void invalidate() {
103+
#if __DCACHE_PRESENT
101104
if (ptr) {
102105
SCB_InvalidateDCache_by_Addr(data(), bytes());
103106
}
107+
#endif
104108
}
105109

106110
uint32_t timestamp() {

0 commit comments

Comments
 (0)