~aleteoryx/muditaos

ref: d97688135029446a9f07d0d0884e247f00682ead muditaos/module-bsp/bsp/watchdog/watchdog.hpp -rw-r--r-- 551 bytes
d9768813 — Radoslaw Wicik [EGD-5823] Fix Use full hash in artefacts 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <string>

namespace bsp::watchdog
{
    /// initializes and starts watchdog
    /// - for linux             - does nothing
    /// - for rt1051 debug      - initializes with maximum value (125 sec)
    /// - for rt1051 release    - initializes with maximum value (125 sec)
    void init();
    /// resets system
    /// - for linux - does nothing - consider just exit(0)
    void system_reset();
    /// update watchdog, so that it won't kick us
    void pet();
    /// get watchdog reset cause
    std::string reset_cause();
}