aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/stm32/traceswo.h
diff options
context:
space:
mode:
authorGareth McMullin2015-02-28 22:48:26 -0800
committerGareth McMullin2015-02-28 22:48:26 -0800
commit476f83b69ad86c71ee57c8633f09667e9caa0a5f (patch)
tree55a43cf35d8a258774528d8f9c8b17a62aecd72b /src/platforms/stm32/traceswo.h
parent5eff0ab5d648408cf4df528d2be3d29b04034083 (diff)
Move common USB stuff out of platform header files.
Diffstat (limited to 'src/platforms/stm32/traceswo.h')
-rw-r--r--src/platforms/stm32/traceswo.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/platforms/stm32/traceswo.h b/src/platforms/stm32/traceswo.h
new file mode 100644
index 0000000..5566f94
--- /dev/null
+++ b/src/platforms/stm32/traceswo.h
@@ -0,0 +1,28 @@
+/*
+ * This file is part of the Black Magic Debug project.
+ *
+ * Copyright (C) 2012 Black Sphere Technologies Ltd.
+ * Written by Gareth McMullin <gareth@blacksphere.co.nz>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef __TRACESWO_H
+#define __TRACESWO_H
+
+#include <libopencm3/usb/usbd.h>
+
+void traceswo_init(void);
+void trace_buf_drain(usbd_device *dev, uint8_t ep);
+
+#endif