-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
drivers: timer: nrf_rtc_timer: Change type of channel argument #33408
drivers: timer: nrf_rtc_timer: Change type of channel argument #33408
Conversation
@jciupis, please have a look if it would require any changes in 802.15.4 platform integration. |
@hubertmis yes, the 802.15.4 platform integration (namely this file) is going to have to be aligned to use the modified API properly. The changes seem trivial though. |
@jciupis, would merging this PR break 802.15.4 builds? Should hal_nordic revision be updated within this PR? |
@hubertmis As far as I know, the file that would require changes is currently in |
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.
I've built an application for nRF53 net core from this pull request. There were no compiler warnings in 802.15.4 code. Only in nrf_rtc_timer.c
that were also spotted by buildkite.
0ea5f9c
to
6f6650d
Compare
Fixing warnings, Updated code in |
6f6650d
to
32ef0ed
Compare
@nordic-krch LGTM 👍 |
32ef0ed
to
423576b
Compare
@anangl can you take a look? |
f5e9471
to
a7f431d
Compare
this violates rule 4.6: "typedefs that indicate size and signedness should be used in place of the basic numerical types" Maybe we should change everything to use int32_t instead? |
@nashif there are a lot of api's in zephyr which return |
yes, it is a daunting task, but this is the goal. It would be nice if new code already start following this now... |
There was an inconsistency in the API as z_nrf_rtc_timer_chan_alloc returned int but other function were using uint32_t for channel argument. Updated api to use int32_t everywhere. Update nrf_802154 driver which was using this api to use int32_t. Signed-off-by: Krzysztof Chruscinski <[email protected]>
Changed chan type to int in the test_timeout function which follows change in the api to always use int for channel parameter. Added assert to check that channel was successfully allocated in test_resetting_cc(). Signed-off-by: Krzysztof Chruscinski <[email protected]>
a7f431d
to
5d12b24
Compare
Updated to use |
There was an inconsistency in the API as z_nrf_rtc_timer_chan_alloc returned int but other function were using uint32_t for channel argument. Updated api to use int everywhere.
Signed-off-by: Krzysztof Chruscinski [email protected]