Skip to content

Is HWInitFunction redundant?Β #93

@hraftery

Description

@hraftery

As highlighted in this example, HWInitFunction should be set to CubeMX's CAN hardware initialisation function. But what for? The CubeMX generated code already calls the function (as the example neatly shows). The setting only seems to be used to call it again during CO_CANmodule_init(), which is called by CANopenNode's CO_CANinit(). Is this redundant? Is there another use case?

I ask, because the function is typically file scoped to main.c. I don't want to expose it wider if I don't have to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions