diff options
author | fishsoupisgood <github@madingley.org> | 2020-06-18 13:26:56 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2020-06-18 13:26:56 +0100 |
commit | e41764fceeabb1cdb6a7a299e00f2166a6f6ac32 (patch) | |
tree | c58c73d742bf990ec692d61ca8d911dd43fab8c6 /app/i2c.c | |
parent | f7b7cf9e80200cade938d47527e39034c75b9b6d (diff) | |
download | robs_speedo-e41764fceeabb1cdb6a7a299e00f2166a6f6ac32.tar.gz robs_speedo-e41764fceeabb1cdb6a7a299e00f2166a6f6ac32.tar.bz2 robs_speedo-e41764fceeabb1cdb6a7a299e00f2166a6f6ac32.zip |
moved stm32 into directory added noddy pcb
Diffstat (limited to 'app/i2c.c')
-rw-r--r-- | app/i2c.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/app/i2c.c b/app/i2c.c deleted file mode 100644 index 8c5630e..0000000 --- a/app/i2c.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "project.h" - -static int mutex = 0; - -int -i2c_lock (void) -{ - if (__sync_add_and_fetch (&mutex, 1) != 1) { - __sync_sub_and_fetch (&mutex, 1); - return -1; - } - - return 0; -} - - -void -i2c_unlock (void) -{ - __sync_sub_and_fetch (&mutex, 1); -} |