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 /spi | |
parent | 1a38973eb8fd0f889f7c272e9ef183687034d550 (diff) |
os: Remove old threading code.
Diffstat (limited to 'spi')
-rw-r--r-- | spi/spi.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,7 +1,7 @@ #ifndef SPI_H #define SPI_H -#include <os/thread.h> +#include <cstdint> struct SPI_reg_t { volatile uint32_t CR1; @@ -28,7 +28,6 @@ class SPI_t { reg.DR8 = out; while(!(reg.SR & 0x01)) { - Thread::yield(); } return reg.DR8; |