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

Update WatchdogNRF.cpp use 64 bit math in reload value calc #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jamcinnes2
Copy link

The nature of the NRF watch dog requires a multiply by 32768 to calculate the reload register value. If using a longer timeout like 300000 ms (5 minutes) it will overflow and not work as intended. This temporarily converts the multiply & divide to a 64 bit operation before setting the register. So longer a timeout can be calculated correctly.

The nature of the NRF watch dog requires a multiply by 32768 to calculate the reload register value. If using a longer timeout like 300000 ms (5 minutes) it will overflow and not work as intended. This temporarily converts the multiply & divide to a 64 bit operation before setting the register. So longer a timeout can be used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant