Skip to content

Consistent behavior of us_ticker_init accross targets #8558

Closed
@LaurentLouf

Description

@LaurentLouf

Description

I have noticed that compared to most of other targets, the us_ticker_init on STM targets does not any mechanism to check if the ticker has already been initialized. For example, on target MAX_32620, we have the following, simple yet effective :

void us_ticker_init(void)
{
if (us_ticker_inited)
return;
us_ticker_inited = 1;
[...]
}

And we have something similar for a lot of other targets, but at least the target STM is missing this feature. This would be nice to have a consistent behavior across all targets to be sure that calling multiple times us_ticker_init will only initialize the ticker once.

Issue request type

[ ] Question
[x] Enhancement
[ ] Bug

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