config(cmake): deleted unneedded files

This commit is contained in:
zys
2026-03-04 13:48:16 +08:00
parent d906bd7987
commit c277f1d9ac
3 changed files with 29 additions and 7 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef __ZPP_WATCHDOG_HPP
#define __ZPP_WATCHDOG_HPP
#include <zephyr/drivers/watchdog.h>
#include <zpp/assert.hpp>
namespace app {
class WatchDogConfig {
public:
WatchDogConfig() {
if (!device_is_ready(m_wtd)) {
__ASSERT_NO_MSG(0);
}
wdt_install_timeout(m_wtd, &wdt_timeout_cfg);
if (auto err = wdt_setup(m_wtd, WDT_OPT_PAUSE_HALTED_BY_DBG); err < 0) {
__ASSERT_NO_MSG(0);
}
wdt_timeout_cfg cfg;
}
private:
const device *m_wtd{DEVICE_DT_GET(DT_ALIAS(watchdog0))};
};
} // namespace app
#endif