summaryrefslogtreecommitdiff
path: root/macros/CCodeGeneration/JoinDeclarAndCcode.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/CCodeGeneration/JoinDeclarAndCcode.sci')
-rw-r--r--macros/CCodeGeneration/JoinDeclarAndCcode.sci5
1 files changed, 5 insertions, 0 deletions
diff --git a/macros/CCodeGeneration/JoinDeclarAndCcode.sci b/macros/CCodeGeneration/JoinDeclarAndCcode.sci
index ebbf002..4328895 100644
--- a/macros/CCodeGeneration/JoinDeclarAndCcode.sci
+++ b/macros/CCodeGeneration/JoinDeclarAndCcode.sci
@@ -145,6 +145,11 @@ PrintStringInfo('** ---------------',CPass2FileName,'file','y');
PrintStringInfo('** --- C code. ---',CPass2FileName,'file','y');
PrintStringInfo('** ---------------',CPass2FileName,'file','y');
PrintStringInfo('*/',CPass2FileName,'file','y');
+
+if(SharedInfo.Target == "RPi")
+ //Add bcm2835_init() function as it is required
+ PrintStringInfo('bcm2835_init();',CPass2FileName,'file','y');
+end
// --- Copy the remaining part of V1 in V2. ---
while (~meof(CPass1V1FileFid))
// #RNU_RES_B