Skip to content

TARGET_STM32F412xG contains system_clock.c in MCU level #13635

@boraozgen

Description

@boraozgen

Description of defect

https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/system_clock.c

should be moved to

https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_NUCLEO_F412ZG

as already is with other targets.

System_clock.c defines board level behavior, such as clock initialization with external or internal clock. For example we use a custom board with this chip where we provide our own system_clock.c implementation which suits our board. Therefore this file should reside in board level.

Another solution could be to define the functions in system_clock.c as __weak to let custom board users to override them.

Target(s) affected by this defect ?

STM32F412xG

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

Not relevant.

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

mbed-os-6.3.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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions