diff options
author | xengineering <mail2xengineering@protonmail.com> | 2021-03-28 12:57:24 +0200 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2021-03-28 13:02:20 +0200 |
commit | 8fd8b46a4b78f631a90109a9ba72fe0c93d2e9cb (patch) | |
tree | 3e5264e2eabbf874efff6474131137405ba9723a /my-common-code | |
parent | 9b7d53550645d693afbb338258af6bcd7b7b2539 (diff) | |
download | ledcontrol-8fd8b46a4b78f631a90109a9ba72fe0c93d2e9cb.tar ledcontrol-8fd8b46a4b78f631a90109a9ba72fe0c93d2e9cb.tar.zst ledcontrol-8fd8b46a4b78f631a90109a9ba72fe0c93d2e9cb.zip |
Initial Project Commit
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); |