summaryrefslogtreecommitdiff
path: root/my-common-code/api-asm.h
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2019-03-24 08:55:28 +0000
committerKarl Palsson <karlp@tweak.net.au>2019-03-24 08:55:28 +0000
commit0f23dacaef1fcd52573805a1ace817066a4ede93 (patch)
tree7c957b6bca640542ec29d0a2d405a57d6a9c2bfa /my-common-code/api-asm.h
parentd1bb072d2be13506012b589b2d0db8e108ce621e (diff)
downloadstm32f103c8-examples-0f23dacaef1fcd52573805a1ace817066a4ede93.tar
stm32f103c8-examples-0f23dacaef1fcd52573805a1ace817066a4ede93.tar.zst
stm32f103c8-examples-0f23dacaef1fcd52573805a1ace817066a4ede93.zip
add missing asm demo files.
that was lame, sorry about that.
Diffstat (limited to 'my-common-code/api-asm.h')
-rw-r--r--my-common-code/api-asm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/my-common-code/api-asm.h b/my-common-code/api-asm.h
new file mode 100644
index 0000000..b153620
--- /dev/null
+++ b/my-common-code/api-asm.h
@@ -0,0 +1,7 @@
+#include <stdint.h>
+/**
+ * Reverse bytes in words
+ * @param in word in form abcd
+ * @returns word in form dcba
+ */
+uint32_t rev_bytes(uint32_t in);