Skip to content

Commit

Permalink
sw: Add include guards to header files
Browse files Browse the repository at this point in the history
  • Loading branch information
Scheremo committed Aug 23, 2024
1 parent b2291c6 commit 65f8a67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sw/include/offload.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
//
// Moritz Scherer <scheremo@iis.ee.ethz.ch>

#ifndef _OFFLOAD_INCLUDE_GUARD_
#define _OFFLOAD_INCLUDE_GUARD_

#include <stdint.h>

void setupInterruptHandler(void *handler);
void offloadToCluster(void *function, uint8_t hartId);
void waitClusterBusy(uint8_t clusterId);
uint32_t waitForCluster(uint8_t clusterId);

#endif
5 changes: 5 additions & 0 deletions sw/include/soc_addr_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
//
// Moritz Scherer <scheremo@iis.ee.ethz.ch>

#ifndef _SOC_ADDR_MAP_INCLUDE_GUARD_
#define _SOC_ADDR_MAP_INCLUDE_GUARD_

#include <stdint.h>

#define CLINT_CTRL_BASE 0x02040000
Expand All @@ -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

0 comments on commit 65f8a67

Please sign in to comment.