From d209903522080c0831f4b942ab2bd45599266774 Mon Sep 17 00:00:00 2001 From: tokiedokie Date: Fri, 26 Jan 2024 10:49:33 +0900 Subject: [PATCH 1/2] add include guard for SDRAM.h --- libraries/Portenta_SDRAM/src/SDRAM.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/Portenta_SDRAM/src/SDRAM.h b/libraries/Portenta_SDRAM/src/SDRAM.h index d5e8ef36b..0d8808f2d 100644 --- a/libraries/Portenta_SDRAM/src/SDRAM.h +++ b/libraries/Portenta_SDRAM/src/SDRAM.h @@ -1,3 +1,6 @@ +#ifndef __SDRAM_H +#define __SDRAM_H + #include "ea_malloc.h" #ifdef __cplusplus @@ -35,4 +38,5 @@ class SDRAMClass { extern SDRAMClass SDRAM; -#endif \ No newline at end of file +#endif +#endif // __SDRAM_H From b0975f7a61b412c9f5b4cb633bdeb7fc1ded8a0c Mon Sep 17 00:00:00 2001 From: tokiedokie Date: Fri, 26 Jan 2024 10:49:41 +0900 Subject: [PATCH 2/2] add include guard for ram_internal.h --- libraries/Portenta_SDRAM/src/ram_internal.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/Portenta_SDRAM/src/ram_internal.h b/libraries/Portenta_SDRAM/src/ram_internal.h index 497ffb020..1d6ff0721 100644 --- a/libraries/Portenta_SDRAM/src/ram_internal.h +++ b/libraries/Portenta_SDRAM/src/ram_internal.h @@ -1,3 +1,6 @@ +#ifndef __RAM_INTERNAL_H +#define __RAM_INTERNAL_H + bool sdram_init(void); #define MPU_REGION_SDRAM1 (MPU_REGION_NUMBER4) @@ -56,3 +59,5 @@ bool sdram_init(void); | (size) << MPU_RASR_SIZE_Pos \ | MPU_REGION_ENABLE << MPU_RASR_ENABLE_Pos \ ) + +#endif // __RAM_INTERNAL_H pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy