Skip to content

Commit

Permalink
Add inline and remove duplicates
Browse files Browse the repository at this point in the history
Accoring to ISO C++ there should be an inline if the function is defined in the header file only
  • Loading branch information
MCUdude committed Oct 8, 2020
1 parent de61389 commit 91838e4
Show file tree
Hide file tree
Showing 18 changed files with 4 additions and 4,218 deletions.
2 changes: 1 addition & 1 deletion DSP_Parameter_generator.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ $hexContent
$dspProgramData
/* Run this function to load DSP firmware directly */
void loadProgram(SigmaDSP &myDSP)
inline void loadProgram(SigmaDSP &myDSP)
{
myDSP.writeRegister(CORE_REGISTER_R0_ADDR, CORE_REGISTER_R0_SIZE, DSP_core_register_R0_data);
myDSP.writeRegisterBlock(PROGRAM_ADDR, PROGRAM_SIZE, DSP_program_data, PROGRAM_REGSIZE);
Expand Down
2 changes: 1 addition & 1 deletion DSP_parameter_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ BEGIN {
END {
printf("\n")
printf("/* Run this function to load DSP firmware directly */\n")
printf("void loadProgram(SigmaDSP &myDSP)\n")
printf("inline void loadProgram(SigmaDSP &myDSP)\n")
printf("{\n")
printf(" myDSP.writeRegister(CORE_REGISTER_R0_ADDR, CORE_REGISTER_R0_SIZE, DSP_core_register_R0_data);\n")
printf(" myDSP.writeRegisterBlock(PROGRAM_ADDR, PROGRAM_SIZE, DSP_program_data, PROGRAM_REGSIZE);\n")
Expand Down
2 changes: 1 addition & 1 deletion examples/0_Template/DSP_Parameter_generator.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ $hexContent
$dspProgramData
/* Run this function to load DSP firmware directly */
void loadProgram(SigmaDSP &myDSP)
inline void loadProgram(SigmaDSP &myDSP)
{
myDSP.writeRegister(CORE_REGISTER_R0_ADDR, CORE_REGISTER_R0_SIZE, DSP_core_register_R0_data);
myDSP.writeRegisterBlock(PROGRAM_ADDR, PROGRAM_SIZE, DSP_program_data, PROGRAM_REGSIZE);
Expand Down
2 changes: 1 addition & 1 deletion examples/0_Template/DSP_parameter_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ BEGIN {
END {
printf("\n")
printf("/* Run this function to load DSP firmware directly */\n")
printf("void loadProgram(SigmaDSP &myDSP)\n")
printf("inline void loadProgram(SigmaDSP &myDSP)\n")
printf("{\n")
printf(" myDSP.writeRegister(CORE_REGISTER_R0_ADDR, CORE_REGISTER_R0_SIZE, DSP_core_register_R0_data);\n")
printf(" myDSP.writeRegisterBlock(PROGRAM_ADDR, PROGRAM_SIZE, DSP_program_data, PROGRAM_REGSIZE);\n")
Expand Down
275 changes: 0 additions & 275 deletions examples/1_Volume/DSP_Parameter_generator.ps1

This file was deleted.

Loading

0 comments on commit 91838e4

Please sign in to comment.