Skip to content

Commit

Permalink
Corrected issue #133 : missing const qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Jan 10, 2024
1 parent 600dea7 commit 91e83cb
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Include/dsp/interpolation_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ extern "C"
*
*/
float32_t arm_linear_interp_f32(
arm_linear_interp_instance_f32 * S,
const arm_linear_interp_instance_f32 * S,
float32_t x);

/**
Expand Down
2 changes: 1 addition & 1 deletion Include/dsp/interpolation_functions_f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ typedef struct
* @return y processed output sample.
*/
float16_t arm_linear_interp_f16(
arm_linear_interp_instance_f16 * S,
const arm_linear_interp_instance_f16 * S,
float16_t x);

/**
Expand Down
2 changes: 1 addition & 1 deletion Source/InterpolationFunctions/arm_linear_interp_f16.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
*
*/
float16_t arm_linear_interp_f16(
arm_linear_interp_instance_f16 * S,
const arm_linear_interp_instance_f16 * S,
float16_t x)
{
float16_t y;
Expand Down
2 changes: 1 addition & 1 deletion Source/InterpolationFunctions/arm_linear_interp_f32.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
*
*/
float32_t arm_linear_interp_f32(
arm_linear_interp_instance_f32 * S,
const arm_linear_interp_instance_f32 * S,
float32_t x)
{
float32_t y;
Expand Down
9 changes: 4 additions & 5 deletions Testing/cmsis_build/boot.clayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ layer:
- +VHT-Corstone-310
- component: Device:Startup&C Startup
not-for-context:
- +VHT-Corstone-300
- +VHT-Corstone-300
- +VHT-Corstone-300-NOMVE
- +VHT-Corstone-310
- +FVP_A5Neon
Expand Down Expand Up @@ -40,21 +40,20 @@ layer:
for-context:
- +VHT-Corstone-300
- +VHT-Corstone-300-NOMVE
- +VHT-Corstone-310
- component: ARM::Native Driver:DMA350 Remap
for-context:
- +VHT-Corstone-310
- component: ARM::Native Driver:Timeout
- component: ARM::Native Driver:SysCounter
for-context:
- +VHT-Corstone-300
- +VHT-Corstone-300-NOMVE
- +VHT-Corstone-310
- component: ARM::Native Driver:SysCounter
- component: ARM::Native Driver:SysTimer
for-context:
- +VHT-Corstone-300
- +VHT-Corstone-300-NOMVE
- +VHT-Corstone-310
- component: ARM::Native Driver:SysTimer
- component: ARM::Native Driver:Timeout
for-context:
- +VHT-Corstone-300
- +VHT-Corstone-300-NOMVE
Expand Down
3 changes: 2 additions & 1 deletion Testing/cmsis_build/runall.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ def runAVH(build,core):
#allSuites=[("StatsTestsQ7","../Output.pickle")]

allSuites=[
("MISCF32","../Output.pickle"),
("InterpolationTestsF32","../Output.pickle"),
("InterpolationTestsF16","../Output_f16.pickle"),
#("MISCQ15","../Output.pickle"),
#("MISCQ7","../Output.pickle"),
#("FIRF16","../Output_f16.pickle")
Expand Down
4 changes: 2 additions & 2 deletions Testing/cmsis_build/test.Release+VHT-Corstone-300-NOMVE.cprj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2023-11-27T06:42:48" tool="csolution 2.0.0"/>
<created timestamp="2024-01-10T08:28:29" tool="csolution 2.2.1"/>

<info isLayer="false">
<description>Automatically generated project</description>
Expand All @@ -15,7 +15,7 @@
<compiler name="AC6" version="6.22.0:6.22.0"/>
</compilers>

<target Ddsp="DSP" Dfpu="DP_FPU" Dmve="FP_MVE" Dname="SSE-300-MPS3" Dtz="TZ" Dvendor="ARM:82">
<target Bname="V2M-MPS3-SSE-300-FVP" Bvendor="ARM" Ddsp="DSP" Dfpu="DP_FPU" Dmve="FP_MVE" Dname="SSE-300-MPS3" Dtz="TZ" Dvendor="ARM:82">
<output elf="test.axf" intdir="tmp/test/VHT-Corstone-300-NOMVE/Release" name="test" outdir="out/test/VHT-Corstone-300-NOMVE/Release" rtedir="RTE" type="exe"/>
<options debug="on"/>
<asflags add="-masm=auto" compiler="AC6"/>
Expand Down
4 changes: 2 additions & 2 deletions Testing/cmsis_build/test.Release+VHT-Corstone-300.cprj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2023-11-27T06:42:48" tool="csolution 2.0.0"/>
<created timestamp="2024-01-10T08:28:29" tool="csolution 2.2.1"/>

<info isLayer="false">
<description>Automatically generated project</description>
Expand All @@ -15,7 +15,7 @@
<compiler name="AC6" version="6.22.0:6.22.0"/>
</compilers>

<target Ddsp="DSP" Dfpu="DP_FPU" Dmve="FP_MVE" Dname="SSE-300-MPS3" Dtz="TZ" Dvendor="ARM:82">
<target Bname="V2M-MPS3-SSE-300-FVP" Bvendor="ARM" Ddsp="DSP" Dfpu="DP_FPU" Dmve="FP_MVE" Dname="SSE-300-MPS3" Dtz="TZ" Dvendor="ARM:82">
<output elf="test.axf" intdir="tmp/test/VHT-Corstone-300/Release" name="test" outdir="out/test/VHT-Corstone-300/Release" rtedir="RTE" type="exe"/>
<options debug="on"/>
<asflags add="-masm=auto" compiler="AC6"/>
Expand Down
2 changes: 1 addition & 1 deletion Testing/cmsis_build/test.Release+VHT_M0P.cprj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2023-11-27T06:42:48" tool="csolution 2.0.0"/>
<created timestamp="2024-01-10T08:28:29" tool="csolution 2.2.1"/>

<info isLayer="false">
<description>Automatically generated project</description>
Expand Down
2 changes: 1 addition & 1 deletion Testing/cmsis_build/test.Release+VHT_M23.cprj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2023-11-27T06:42:48" tool="csolution 2.0.0"/>
<created timestamp="2024-01-10T08:28:29" tool="csolution 2.2.1"/>

<info isLayer="false">
<description>Automatically generated project</description>
Expand Down
2 changes: 1 addition & 1 deletion Testing/cmsis_build/test.Release+VHT_M3.cprj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2023-11-27T06:42:48" tool="csolution 2.0.0"/>
<created timestamp="2024-01-10T08:28:29" tool="csolution 2.2.1"/>

<info isLayer="false">
<description>Automatically generated project</description>
Expand Down
2 changes: 1 addition & 1 deletion Testing/cmsis_build/test.Release+VHT_M33.cprj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2023-11-27T06:42:48" tool="csolution 2.0.0"/>
<created timestamp="2024-01-10T08:28:29" tool="csolution 2.2.1"/>

<info isLayer="false">
<description>Automatically generated project</description>
Expand Down
2 changes: 1 addition & 1 deletion Testing/cmsis_build/test.Release+VHT_M4.cprj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2023-11-27T06:42:48" tool="csolution 2.0.0"/>
<created timestamp="2024-01-10T08:28:29" tool="csolution 2.2.1"/>

<info isLayer="false">
<description>Automatically generated project</description>
Expand Down
2 changes: 1 addition & 1 deletion Testing/cmsis_build/test.Release+VHT_M7.cprj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2023-11-27T06:42:48" tool="csolution 2.0.0"/>
<created timestamp="2024-01-10T08:28:29" tool="csolution 2.2.1"/>

<info isLayer="false">
<description>Automatically generated project</description>
Expand Down
2 changes: 1 addition & 1 deletion Testing/cmsis_build/test.Release+VHT_M7_UNROLLED.cprj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2023-11-27T06:42:48" tool="csolution 2.0.0"/>
<created timestamp="2024-01-10T08:28:29" tool="csolution 2.2.1"/>

<info isLayer="false">
<description>Automatically generated project</description>
Expand Down
6 changes: 3 additions & 3 deletions Testing/cmsis_build/test.cproject.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
project:
setups:
- setup:
- setup: Cortex-A9
define:
- ARM_MATH_AUTOVECTORIZE
- DISABLEFLOAT16
for-context:
- +FVP_A9Neon

- setup:
- setup: Cortex-A5 or A7
define:
- ARM_MATH_NEON
- DISABLEFLOAT16
for-context:
- +FVP_A5Neon
- +FVP_A7Neon

- setup:
- setup: Any Cortex-M
not-for-context:
- +FVP_A5Neon
- +FVP_A7Neon
Expand Down
17 changes: 17 additions & 0 deletions Testing/cmsis_build/test_ac6.cbuild-pack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cbuild-pack:
resolved-packs:
- resolved-pack: ARM::[email protected]
selected-by:
- ARM::[email protected]
- resolved-pack: ARM::[email protected]
selected-by:
- ARM::[email protected]
- resolved-pack: ARM::[email protected]
selected-by:
- ARM::[email protected]
- resolved-pack: ARM::[email protected]
selected-by:
- ARM::[email protected]
- resolved-pack: Keil::[email protected]
selected-by:
- Keil::[email protected]
15 changes: 9 additions & 6 deletions Testing/cmsis_build/test_ac6.csolution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,28 @@ solution:
packs:
- pack: ARM::[email protected]
- pack: ARM::[email protected]
- pack: ARM::V2M_MPS3_SSE_310_BSP@1.1.0
- pack: ARM::V2M_MPS3_SSE_310_BSP@1.3.0
- pack: Keil::[email protected]
- pack: ARM::[email protected]

target-types:
- type: VHT-Corstone-310
device: ARM::SSE-310-MPS3
define:
- CORTEXM
- SSE310MPS3
#- type: VHT-Corstone-310
# device: ARM::SSE-310-MPS3_FVP
# board: ARM::V2M-MPS3-SSE-310
# define:
# - CORTEXM
# - SSE310MPS3

- type: VHT-Corstone-300
device: ARM::SSE-300-MPS3
board: ARM::V2M-MPS3-SSE-300-FVP
define:
- CORTEXM
- SSE300MPS3

- type: VHT-Corstone-300-NOMVE
device: ARM::SSE-300-MPS3
board: ARM::V2M-MPS3-SSE-300-FVP
misc:
- C:
- -mcpu=cortex-m55+nomve
Expand Down

0 comments on commit 91e83cb

Please sign in to comment.