aboutsummaryrefslogtreecommitdiff
path: root/system-clock/include/spin.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2018-01-15 15:49:13 -0700
committerJosh Rahm <joshuarahm@gmail.com>2018-01-15 15:49:13 -0700
commit6d3197d768bf13c1402c1305050ea355f8c79fec (patch)
tree78f9e728e57746363fd1f12f8bc3c5fbcc80a2d1 /system-clock/include/spin.h
parent67d97164b358ae5c9c0038e58302a6f89c7bb3c5 (diff)
downloadstm32l4-6d3197d768bf13c1402c1305050ea355f8c79fec.tar.gz
stm32l4-6d3197d768bf13c1402c1305050ea355f8c79fec.tar.bz2
stm32l4-6d3197d768bf13c1402c1305050ea355f8c79fec.zip
added spin.*
Diffstat (limited to 'system-clock/include/spin.h')
-rw-r--r--system-clock/include/spin.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/system-clock/include/spin.h b/system-clock/include/spin.h
new file mode 100644
index 0000000..a920847
--- /dev/null
+++ b/system-clock/include/spin.h
@@ -0,0 +1,17 @@
+#ifndef H__SPIN_
+#define H__SPIN_
+
+#include <stdint.h>
+
+/*
+ * Flash a code on the status LED.
+ *
+ * The flash codes a binary from MSB to LSB. A long flash is a 1, a short flash
+ * is a 0. Each independent flashing is succeced by a break of 4 times that
+ * of a long flash.
+ */
+void spin(uint8_t code);
+
+
+
+#endif /* H__SPIN_ */