diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2021-01-22 13:45:09 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2021-01-22 13:45:09 +0100 |
commit | 257c13ef064e20bfbe7330004c76a77f8a73b86b (patch) | |
tree | 8610cedea8481d8d6dbbc02edadd61e4983e758d /i2c | |
parent | 1a38973eb8fd0f889f7c272e9ef183687034d550 (diff) |
os: Remove old threading code.
Diffstat (limited to 'i2c')
-rw-r--r-- | i2c/i2c.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/i2c/i2c.cpp b/i2c/i2c.cpp index 3039e47..75aee94 100644 --- a/i2c/i2c.cpp +++ b/i2c/i2c.cpp @@ -1,7 +1,6 @@ #include "i2c.h" #include <rcc/rcc.h> -#include <os/thread.h> #if defined(STM32F1) I2C_t I2C1(0x40005400, 36000000); @@ -113,7 +112,6 @@ void I2C_t::write_reg(uint8_t addr_, uint8_t reg_, uint8_t data) { reg.CR1 |= 0x100; while(busy) { - Thread::yield(); } } @@ -128,7 +126,6 @@ void I2C_t::read_reg(uint8_t addr_, uint8_t reg_, uint8_t len, uint8_t* buf) { reg.CR1 |= 0x100; while(busy) { - Thread::yield(); } } #endif |