Ensure Cortex-M reset wakes device from sleep (wfi/wfe)
[fw/openocd] / src / target / oocd_trace.h
index 49b4b890188ed5fcad146d73599abfc2811eb0d8..538f1b26b2680ce5d977c277f6db34b69222b7c8 100644 (file)
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
+
 #ifndef OOCD_TRACE_H
 #define OOCD_TRACE_H
 
-#include "etm.h"
-
 #include <termios.h>
 
 /* registers */
-enum
-{
+enum {
        OOCD_TRACE_ID = 0x7,
        OOCD_TRACE_ADDRESS = 0x0,
        OOCD_TRACE_TRIGGER_COUNTER = 0x01,
@@ -36,8 +34,7 @@ enum
 };
 
 /* commands */
-enum
-{
+enum {
        OOCD_TRACE_NOP = 0x0,
        OOCD_TRACE_READ_REG = 0x10,
        OOCD_TRACE_WRITE_REG = 0x18,
@@ -46,9 +43,8 @@ enum
        OOCD_TRACE_RESYNC = 0xf0,
 };
 
-struct oocd_trace
-{
-       etm_context_t *etm_ctx;
+struct oocd_trace {
+       struct etm_context *etm_ctx;
        char *tty;
        int tty_fd;
        struct termios oldtio, newtio;