Skip to content
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

TIMER1/2 should not share the same definition as TIMER0 #1

Open
jonas-schievink opened this issue Nov 6, 2018 · 3 comments
Open

TIMER1/2 should not share the same definition as TIMER0 #1

jonas-schievink opened this issue Nov 6, 2018 · 3 comments
Labels
nrf51 Affects `nrf51-pac`

Comments

@jonas-schievink
Copy link
Contributor

At least on the nRF51822 and nRF51422, only TIMER0 can do 8/16/24 and 32-bit operation, while TIMER1 and 2 are restricted to 8/16-bit operation.

Because all of them share the same code, you can still do things like this:

p.device.TIMER1.bitmode.write(|w| w.bitmode()._32bit());

...which will put TIMER1 in either 8 or 16-bit mode, instead of the intended 32-bit mode.

@therealprof
Copy link

@jonas-schievink Thanks for noticing. @droogmic maybe something to consider for your Timer rework...

@droogmic
Copy link

droogmic commented Nov 6, 2018 via email

@jonas-schievink
Copy link
Contributor Author

jonas-schievink commented Jan 14, 2019

Did the repo move make the Pull Request disappear? I don't see it in the commit history or PR list.

EDIT: Nevermind nrf-rs/nrf51-hal#12

@jonas-schievink jonas-schievink transferred this issue from nrf-rs/nrf51 Aug 6, 2021
@jonas-schievink jonas-schievink added the nrf51 Affects `nrf51-pac` label Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nrf51 Affects `nrf51-pac`
Projects
None yet
Development

No branches or pull requests

3 participants