From 65f8a670cb2c9da0ac2a069ed73174f1a7a16b35 Mon Sep 17 00:00:00 2001 From: Moritz Scherer Date: Fri, 23 Aug 2024 09:38:55 +0200 Subject: [PATCH] sw: Add include guards to header files --- sw/include/offload.h | 5 +++++ sw/include/soc_addr_map.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/sw/include/offload.h b/sw/include/offload.h index c0699cd..9b46e2a 100644 --- a/sw/include/offload.h +++ b/sw/include/offload.h @@ -4,9 +4,14 @@ // // Moritz Scherer +#ifndef _OFFLOAD_INCLUDE_GUARD_ +#define _OFFLOAD_INCLUDE_GUARD_ + #include void setupInterruptHandler(void *handler); void offloadToCluster(void *function, uint8_t hartId); void waitClusterBusy(uint8_t clusterId); uint32_t waitForCluster(uint8_t clusterId); + +#endif diff --git a/sw/include/soc_addr_map.h b/sw/include/soc_addr_map.h index 1e2312f..8141c6f 100644 --- a/sw/include/soc_addr_map.h +++ b/sw/include/soc_addr_map.h @@ -4,6 +4,9 @@ // // Moritz Scherer +#ifndef _SOC_ADDR_MAP_INCLUDE_GUARD_ +#define _SOC_ADDR_MAP_INCLUDE_GUARD_ + #include #define CLINT_CTRL_BASE 0x02040000 @@ -28,3 +31,5 @@ static uint8_t _chimera_numCores[] = {CLUSTER_0_NUMCORES, CLUSTER_1_NUMCORES, CL #define CHIMERA_PADFRAME_BASE_ADDRESS 0x30002000 #define FLL_BASE_ADDR 0x30003000 + +#endif