projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jtag/drivers/ulink: fix clang static analyzer warning
[fw/openocd]
/
src
/
target
/
oocd_trace.h
diff --git
a/src/target/oocd_trace.h
b/src/target/oocd_trace.h
index dfa6449e4ef79bc49e24aa237cb7bdb0f98a2143..e7584e4c9dbf26d37afcb8cef5cf6b1090593af4 100644
(file)
--- a/
src/target/oocd_trace.h
+++ b/
src/target/oocd_trace.h
@@
-13,23
+13,16
@@
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
***************************************************************************/
-#ifndef OOCD_TRACE_H
-#define OOCD_TRACE_H
-#include "command.h"
-
-#include "etm.h"
+#ifndef OPENOCD_TARGET_OOCD_TRACE_H
+#define OPENOCD_TARGET_OOCD_TRACE_H
#include <termios.h>
#include <termios.h>
-#include <unistd.h>
/* registers */
/* registers */
-enum
-{
+enum {
OOCD_TRACE_ID = 0x7,
OOCD_TRACE_ADDRESS = 0x0,
OOCD_TRACE_TRIGGER_COUNTER = 0x01,
OOCD_TRACE_ID = 0x7,
OOCD_TRACE_ADDRESS = 0x0,
OOCD_TRACE_TRIGGER_COUNTER = 0x01,
@@
-39,8
+32,7
@@
enum
};
/* commands */
};
/* commands */
-enum
-{
+enum {
OOCD_TRACE_NOP = 0x0,
OOCD_TRACE_READ_REG = 0x10,
OOCD_TRACE_WRITE_REG = 0x18,
OOCD_TRACE_NOP = 0x0,
OOCD_TRACE_READ_REG = 0x10,
OOCD_TRACE_WRITE_REG = 0x18,
@@
-49,14
+41,13
@@
enum
OOCD_TRACE_RESYNC = 0xf0,
};
OOCD_TRACE_RESYNC = 0xf0,
};
-typedef struct oocd_trace_s
-{
- etm_context_t *etm_ctx;
+struct oocd_trace {
+ struct etm_context *etm_ctx;
char *tty;
int tty_fd;
struct termios oldtio, newtio;
char *tty;
int tty_fd;
struct termios oldtio, newtio;
-}
oocd_trace_t
;
+};
-extern
etm_capture_driver_t
oocd_trace_capture_driver;
+extern
struct etm_capture_driver
oocd_trace_capture_driver;
-#endif /* O
OCD_TRACE
_TRACE_H */
+#endif /* O
PENOCD_TARGET_OOCD
_TRACE_H */