Closed
Description
Description
- Target STM
- GNU ARM 7-2017-q4-major
- mbed-cli 1.7.3
- 603c4f9 (HEAD -> master) Merge pull request littlefs: Fixed issue with cleanup in mount function on error #7851 from geky/fix-littlefs-mount-cleanup
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