-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32: Refactor us_ticker files #7290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lot's of cloned file changes. Hoping this was done by script, and not by hand!
Was much easier to tell what happened via each commit instead of the overall diff.
/morph build |
Build : SUCCESSBuild number : 2425 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2054 |
Test : FAILUREBuild number : 2205 |
@bcostm Please take a look at the test failures. On quick glance, they all appear to be related to ST boards and tickers. |
Yes I used sed/find commands to do it (too lazy to do it manually on 55 files :)) I will check the errors |
@bcostm Any update for the failures above? |
I've managed to make one test pass but it causes other tests to be fail... I put this PR on hold for now until Issue #7316 is fixed because same files/functions are used. |
61c52f6
to
1bf4bca
Compare
I have rebased and added what has been done in PR #7352. Tests on several boards on-going. I'll give the status when they'll be terminated. |
Hi |
Can be the commit messages improved? |
- rename hal_tick_common.c in hal_tick_overrides.c - move 16 and 32bits timer functions in us_ticker.c
- rename TIM_MST_16BIT in TIM_MST_BIT_WIDTH in order to use it directly in ticker info structure - change HAL_InitTick() and HAL_GetTick()
… issue with 16-bit timer - Move back the 16/32bit timer initialization in HAL_InitTick() and not in us_ticker_init() - Use ticker_read_us() and us_ticker_read() in HAL_GetTick() to fix potential overflow issue with the 16bit timer ==> These corrections allow timer, rtc, sleep, tick tests to PASS
1bf4bca
to
0b133be
Compare
OK. Commit messages updated. |
/morph build |
Build : SUCCESSBuild number : 2569 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2213 |
Test : SUCCESSBuild number : 2323 |
I don't see the |
STM32: Refactor us_ticker files
Description
This PR re-arrange the files used to manage the us_ticker. Previously the code was mixed in different files (us_ticker.c, hal_tick_16b.c, hal_tick_32b.c, hal_tick_common.c, hal_tick.h).
Now:
us_ticker.c
andus_ticker_data.h
fileshal_tick_overrides.c
file contains only the ST HAL Tick functions redefinitions (weak)Pull request type