diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-10-24 18:34:11 +0200 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-10-24 18:34:11 +0200 |
commit | db0a19edd8c4cd62c6784d8bb1d91c61a6447a2a (patch) | |
tree | 91a713eb93885d598533c2bae536d0d441468339 /my-common-code | |
parent | 28a93739db99920431b5d72d948bfc1cddd0a8a7 (diff) | |
download | stm32f103c8-examples-db0a19edd8c4cd62c6784d8bb1d91c61a6447a2a.tar stm32f103c8-examples-db0a19edd8c4cd62c6784d8bb1d91c61a6447a2a.tar.zst stm32f103c8-examples-db0a19edd8c4cd62c6784d8bb1d91c61a6447a2a.zip |
Remove Template Code
Diffstat (limited to 'my-common-code')
-rw-r--r-- | my-common-code/api-asm.S | 19 | ||||
-rw-r--r-- | my-common-code/api-asm.h | 7 | ||||
-rw-r--r-- | my-common-code/api.c | 7 | ||||
-rw-r--r-- | my-common-code/api.h | 1 |
4 files changed, 0 insertions, 34 deletions
diff --git a/my-common-code/api-asm.S b/my-common-code/api-asm.S deleted file mode 100644 index 93419fd..0000000 --- a/my-common-code/api-asm.S +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Example of a pure assembly file - * For most people, this is normally unnecessary, you can use inline - * ASM in a C file, if you even need to use ASM at all. - * However, if you reallllly like doing this sort of thing, here's how :) - */ - -.syntax unified -.thumb -.section .text - -#include <libopencm3/stm32/gpio.h> - -.global rev_bytes -.func rev_bytes /* only used for debugger */ -.type rev_bytes, STT_FUNC -rev_bytes: - rev r0, r0 - bx lr diff --git a/my-common-code/api-asm.h b/my-common-code/api-asm.h deleted file mode 100644 index b153620..0000000 --- a/my-common-code/api-asm.h +++ /dev/null @@ -1,7 +0,0 @@ -#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); diff --git a/my-common-code/api.c b/my-common-code/api.c deleted file mode 100644 index ec24e0c..0000000 --- a/my-common-code/api.c +++ /dev/null @@ -1,7 +0,0 @@ - -#include "api.h" - -int my_func(int a) -{ - return a * 3; -} diff --git a/my-common-code/api.h b/my-common-code/api.h deleted file mode 100644 index b5a9c98..0000000 --- a/my-common-code/api.h +++ /dev/null @@ -1 +0,0 @@ -int my_func(int a); |