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

Adding WDT to nRF9160. #283

Merged
merged 5 commits into from
Jan 11, 2021
Merged

Adding WDT to nRF9160. #283

merged 5 commits into from
Jan 11, 2021

Conversation

macthestack
Copy link
Contributor

Small changes to make WDT work on the nRF9160.

Tested on my hardware (Actinius Icarus):

  • set_lfosc_ticks
  • activate
  • try_recover
  • pet

nrf-hal-common/src/wdt.rs Outdated Show resolved Hide resolved
cfg_if! {
if #[cfg(feature = "9160")]
{
self.wdt.runstatus.read().runstatuswdt().bit_is_set()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the PAC wrong here or is this also called runstatuswdt in the datasheet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PAC is right I believe. It appears like this in the datasheet: https://infocenter.nordicsemi.com/pdf/nRF9160_PS_v2.0.pdf - p.357

nrf-hal-common/src/wdt.rs Outdated Show resolved Hide resolved
nrf-hal-common/src/wdt.rs Outdated Show resolved Hide resolved
macthestack and others added 3 commits January 9, 2021 19:53
Co-authored-by: Jonas Schievink <[email protected]>
Co-authored-by: Jonas Schievink <[email protected]>
Co-authored-by: Jonas Schievink <[email protected]>
@macthestack
Copy link
Contributor Author

I'm not sure I responded / approved your suggestions in the right fashion.

Thanks for the review and sorry for not running fmt.

@jonas-schievink
Copy link
Contributor

Thanks, looks good!

@jonas-schievink jonas-schievink merged commit 9e25ce4 into nrf-rs:master Jan 11, 2021
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.

2 participants