blob: c2fe34aa7510e064b32a40df3d9a700181f1e26c (
plain)
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
|
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright 2018-2019 NXP
*/
#ifndef SC_TIMER_API_H
#define SC_TIMER_API_H
/* Defines */
/* Defines for type widths */
#define SC_TIMER_ACTION_W 3U /* Width of sc_timer_wdog_action_t */
/* Defines for sc_timer_wdog_action_t */
#define SC_TIMER_WDOG_ACTION_PARTITION 0U /* Reset partition */
#define SC_TIMER_WDOG_ACTION_WARM 1U /* Warm reset system */
#define SC_TIMER_WDOG_ACTION_COLD 2U /* Cold reset system */
#define SC_TIMER_WDOG_ACTION_BOARD 3U /* Reset board */
#define SC_TIMER_WDOG_ACTION_IRQ 4U /* Only generate IRQs */
/* Types */
/*
* This type is used to configure the watchdog action.
*/
typedef u8 sc_timer_wdog_action_t;
/*
* This type is used to declare a watchdog time value in milliseconds.
*/
typedef u32 sc_timer_wdog_time_t;
#endif /* SC_TIMER_API_H */
|