blob: 42efcd13e045c0185f85e8a1b5931864b2388ed7 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/****************************************************************************************************//**
* @file trace_wdg_timeout.h
*
* @brief
*
* @version v0.1
* @date 2018-11-05
*
* @note
****************************************************************************************************/
#ifndef TRACE_WDG_TIMEOUT_H
#define TRACE_WDG_TIMEOUT_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stdbool.h>
#include "trace_common.h"
#include "trace_port_config.h"
/******** magic pattern for wdg timeout reason record ********/
#define WDG_TIMEOUT_PATTERN_BEG (0xfdcebaef)
#define WDG_TIMEOUT_PATTERN_END (0xfcaebaef)
/************Dump info: *********
4: beg pattern(value=0xfdcebaef)
4: reset reason(value=0x1)
4: lr
4: pc
4: sp
80: current TCB
512 or less: task callstck
4: end pattern(value=0xfcaebaef)
*********************************/
extern void patch_wdg_timeout_reason_save_to_flash_init(void);
#ifdef __cplusplus
}
#endif
#endif
|