-
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
NRF_52840: Fix us ticker counter size #7313
Conversation
Ticker/Timer test results (
|
@@ -77,7 +77,7 @@ void us_ticker_init(void) | |||
|
|||
nrf_timer_frequency_set(NRF_TIMER1, NRF_TIMER_FREQ_1MHz); | |||
|
|||
#ifdef NRF52 | |||
#if defined(NRF52) || defined(NRF52840_XXAA) |
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.
If you use TARGET_NRF52
it will also work for the new NRF52810.
ef0f949
to
94cd20b
Compare
Fixed as suggested by @marcuschangarm. |
It has been noticed that there is a problem with us ticker on NRF_52840 board after 32 bit counter has been used for us ticker on NRF52 family boards. Currently NRF52 symbol is defined only for MCU_NRF52832 (not for MCU_NRF52840) and based on this symbol 16 or 32 bit counter is selected (16 bit for NRF51 family and 32 for NRF52 family). Since MCU_NRF52840 defines NRF52840_XXAA and provides 32 bit counters, 32 bit counter should be selected also when NRF52840_XXAA symbol is defined.
94cd20b
to
9966110
Compare
/morph build |
Build : SUCCESSBuild number : 2467 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2096 |
Test : SUCCESSBuild number : 2244 |
Description
It has been noticed that there is a problem with us ticker on NRF_52840 board after 32 bit counter has been used for us ticker on NRF52 family boards.
Currently
NRF52
symbol is defined only for MCU_NRF52832 (not for MCU_NRF52840) and based on this symbol 16 or 32 bit counter is selected (16 bit for NRF51 family and 32 for NRF52 family).Since MCU_NRF52840 defines
NRF52840_XXAA
and provides 32 bit counters, 32 bit counter should be selected also whenNRF52840_XXAA
symbol is defined.@marcuschangarm Can you review this PR?
Pull request type