Skip to content

Commit

Permalink
bugfix period in atsam4s2b watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
itzandroidtab committed Aug 3, 2024
1 parent b2d5ab7 commit 586e136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions targets/core/atmel/atsam4s/watchdog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ namespace klib::core::atsam4s::io {
static void init() {
// setup the parameters of the watchdog
Wdt::port->MR = (
(Period & 0xffff) | (Irq << 12) | (WdtRst << 13) | (RstCPU << 14) |
((Period & 0xffff) << 16) | (0x1 << 28) | (IdleHalt << 29)
(Period & 0xfff) | (Irq << 12) | (WdtRst << 13) | (RstCPU << 14) |
((Period & 0xfff) << 16) | (0x1 << 28) | (IdleHalt << 29)
);
}
};
Expand Down

0 comments on commit 586e136

Please sign in to comment.