Skip to content

Commit

Permalink
Small cleanup:
Browse files Browse the repository at this point in the history
* Fixed comment spelling
* Fixed TODO in watchdog for SAM4E
  • Loading branch information
john-terrell committed Apr 10, 2021
1 parent 9d4c2a1 commit 6fbe0d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use {
pub trait GpioExt {
type Parts;

/// Consume and split the device into its constitent parts
/// Consume and split the device into its constituent parts
fn split(self) -> Self::Parts;
}
pub struct Ports {
Expand Down
7 changes: 0 additions & 7 deletions src/watchdog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ impl watchdog::Watchdog for Watchdog {
/// Feeds an existing watchdog to ensure the processor isn't reset.
/// Sometimes commonly referred to as "kicking" or "refreshing".
fn feed(&mut self) {
// TODO Bug in atsam4e16e pac (atsam4s includes passwd() set option)
#[cfg(feature = "atsam4e")]
self.wdt
.cr
.write_with_zero(|w| unsafe { w.key().bits(0xA5).wdrstt().set_bit() });

#[cfg(feature = "atsam4s")]
self.wdt
.cr
.write_with_zero(|w| w.key().passwd().wdrstt().set_bit());
Expand Down

0 comments on commit 6fbe0d0

Please sign in to comment.