We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51461f9 + 2568b78 commit 751cec6Copy full SHA for 751cec6
cores/arduino/avr/io.h
@@ -25,8 +25,14 @@
25
#ifndef _IO_H_
26
#define _IO_H_
27
28
-#define RAMSTART (HMCRAMC0_ADDR)
29
-#define RAMSIZE (HMCRAMC0_SIZE)
+#ifdef __SAMD51__
+ #define RAMSTART (HSRAM_ADDR)
30
+ #define RAMSIZE (HSRAM_SIZE)
31
+#else
32
+ #define RAMSTART (HMCRAMC0_ADDR)
33
+ #define RAMSIZE (HMCRAMC0_SIZE)
34
+#endif
35
+
36
#define RAMEND (RAMSTART + RAMSIZE - 1)
37
38
#endif
0 commit comments