forked from ckormanyos/real-time-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mcal_wdg.h
33 lines (25 loc) · 854 Bytes
/
mcal_wdg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2013 - 2020.
// Distributed under the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MCAL_WDG_2010_04_10_H_
#define MCAL_WDG_2010_04_10_H_
extern "C" void __my_startup() __attribute__((section(".startup"), used, noinline));
namespace sys { namespace idle { void task_func(); } }
namespace mcal
{
namespace wdg
{
typedef void config_type;
void init(const config_type*);
class secure final
{
static void trigger();
friend void ::sys::idle::task_func();
friend void ::__my_startup();
};
}
}
#endif // MCAL_WDG_2010_04_10_H_