diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-11-22 00:30:22 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-11-22 00:30:22 +0300 |
commit | 302b4435100b77bcf92ae92bf4dd4845027b6b3c (patch) | |
tree | e12228e065669c1830e1d93d6827e48be282d04b /src/RepRapFirmware.h | |
parent | 02312928a3fa09fcfe65fcbfdf21383a90563080 (diff) |
Fixed use of RSWDT in SAME70 builds
Diffstat (limited to 'src/RepRapFirmware.h')
-rw-r--r-- | src/RepRapFirmware.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/RepRapFirmware.h b/src/RepRapFirmware.h index cfd3b2ca..e83c98e0 100644 --- a/src/RepRapFirmware.h +++ b/src/RepRapFirmware.h @@ -71,7 +71,11 @@ const char *SafeStrptime(const char *buf, const char *format, struct tm *timeptr // Functions needed for builds that use CoreNG. Not needed when using CoreN2G. void delay(uint32_t ms) noexcept; -static inline void WatchdogReset() noexcept { return watchdogReset(); } + +static inline void WatchdogReset() noexcept +{ + WDT->WDT_CR = WDT_CR_KEY_PASSWD | WDT_CR_WDRSTT; +} // Optimised version of memcpy for use when the source and destination are known to be 32-bit aligned and a whole number of 32-bit words is to be copied void memcpyu32(uint32_t *dst, const uint32_t *src, size_t numWords) noexcept; |