aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGareth McMullin2015-02-28 22:05:10 -0800
committerGareth McMullin2015-02-28 22:05:10 -0800
commit75001a442126e3b42f6f95f1917a7cb33b92d063 (patch)
tree7f18e7d0623ef54afa3a94712d04abfe25e242db /src/include
parent5d136398e121168c41e1c3488454e02f11afd67b (diff)
Factor Morse code functions out of platform code.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/morse.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/include/morse.h b/src/include/morse.h
new file mode 100644
index 0000000..ac53893
--- /dev/null
+++ b/src/include/morse.h
@@ -0,0 +1,32 @@
+/*
+ * This file is part of the Black Magic Debug project.
+ *
+ * Copyright (C) 2015 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 __MORSE_H
+#define __MORSE_H
+
+#include <stdbool.h>
+
+extern const char *morse_msg;
+
+void morse(const char *msg, char repeat);
+bool morse_update(void);
+
+#endif
+