1
2
3
6
7
8
9
10
11
12
13
17
18
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
45
46
47
/* ... */
#ifndef OPENOCD_TARGET_ARMV7M_TRACE_H
#define OPENOCD_TARGET_ARMV7M_TRACE_H
#include <helper/command.h>
#include <target/target.h>
/* ... */
enum itm_ts_prescaler {
ITM_TS_PRESCALE1,
ITM_TS_PRESCALE4,
ITM_TS_PRESCALE16,
ITM_TS_PRESCALE64,
...};
struct armv7m_trace_config {
uint32_t itm_ter[8];
unsigned int trace_bus_id;
enum itm_ts_prescaler itm_ts_prescale;
bool itm_diff_timestamps;
bool itm_async_timestamps;
bool itm_synchro_packets;
...};
extern const struct command_registration armv7m_trace_command_handlers[];
/* ... */
int armv7m_trace_itm_config(struct target *target);
/* ... */
#endif