Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MMA8451Q USBDevice WakeUp vt100
Fork of afero_node_suntory_2017_06_15 by
util/WatchDogWrapper.cpp
- Committer:
- wataloh
- Date:
- 2017-06-09
- Revision:
- 21:d03c7bbb9f37
File content as of revision 21:d03c7bbb9f37:
#if defined(TARGET_KL25Z) #include "WatchDogWrapper.hpp" void WatchDogWrapper::empty() { } void WatchDogWrapper::_reset() { SIM->SRVCOP = (uint32_t)0x55u; SIM->SRVCOP = (uint32_t)0xAAu; } WatchDogWrapper::WatchDogWrapper() { SIM->COPC = 0x0C ; /* default value */ pReset = &WatchDogWrapper::_reset; } void WatchDogWrapper::kick_the_bucket() { pReset = &WatchDogWrapper::empty; SCB->AIRCR = 0x05FA0004 ; } void WatchDogWrapper::reset() { (this->*pReset)(); } #endif //TARGET_KL25Z