-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsegger_wrapper.h
More file actions
48 lines (37 loc) · 888 Bytes
/
Copy pathsegger_wrapper.h
File metadata and controls
48 lines (37 loc) · 888 Bytes
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
48
/*
* segger_wrapper.h
*
* Created on: 5 oct. 2017
* Author: Vincent
*/
#ifndef LIBRARIES_UTILS_SEGGER_WRAPPER_H_
#define LIBRARIES_UTILS_SEGGER_WRAPPER_H_
#include <stdint.h>
#include "hardfault.h"
#define EMPTY_MACRO do {} while (0)
#define SYSTEM_DESCR_POS_CRC 0xFD
typedef struct {
HardFault_stack_t stck;
uint8_t crc;
} sAppHardFaultDesc;
typedef struct {
char _buffer[210];
uint32_t pc;
uint32_t id;
uint8_t crc;
} sAppErrorDesc;
typedef struct {
uint8_t special;
uint32_t void_id;
uint32_t task_id;
sAppErrorDesc err_desc;
sAppHardFaultDesc hf_desc;
} sAppErrorDescr;
extern sAppErrorDescr m_app_error;
#ifdef TDD
#include "segger_wrapper_tdd.h"
#else
#include "segger_wrapper_arm.h"
#endif
#include "task_manager_wrapper.h"
#endif /* LIBRARIES_UTILS_SEGGER_WRAPPER_H_ */