Skip to content

arm math: DSP header file should be part of CMSIS DSP, not alone in cmsis #12054

@0xc0170

Description

@0xc0170

Description of defect

File arm_math.h: https://github.com/ARMmbed/mbed-os/blob/master/cmsis/TARGET_CORTEX_M/arm_math.h is part of this repository. It was added 106f34e but I believe it was in the tree longer as we used to have DSP library part of Mbed 2. I recall this header contained some implementation we used (CLZ for example) but that was removed in this header. We should not need this header file.

It causes a problems, as CMSIS DSP is a component (providing implementation), not any API we could overwrite. We should review this header file, and possibly remove it (it is outdated, our import script ignores it). Plus it causes a conflicts, for applications that use DSP, our outdated header file gets in and causes errors.

Ideally, DSP gets in via separate module as we do not provide this functionality in Mbed OS.

Target(s) affected by this defect ?

Cortex-M targets (all)

Toolchain(s) (name and version) displaying this defect ?

All, generic file

What version of Mbed-os are you using (tag or sha) ?

5.14.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

Not relevant

How is this defect reproduced ?

Not relevant

cc @ARMmbed/mbed-os-core

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions