Skip to content

Commit

Permalink
add include guard for ram_internal.h
Browse files Browse the repository at this point in the history
  • Loading branch information
tokiedokie committed Jan 26, 2024
1 parent d209903 commit b0975f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/Portenta_SDRAM/src/ram_internal.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef __RAM_INTERNAL_H
#define __RAM_INTERNAL_H

bool sdram_init(void);

#define MPU_REGION_SDRAM1 (MPU_REGION_NUMBER4)
Expand Down Expand Up @@ -56,3 +59,5 @@ bool sdram_init(void);
| (size) << MPU_RASR_SIZE_Pos \
| MPU_REGION_ENABLE << MPU_RASR_ENABLE_Pos \
)

#endif // __RAM_INTERNAL_H

0 comments on commit b0975f7

Please sign in to comment.