Browse Source

i2c: no us delay available on stm, use ms instead

master
Franz Levin 2 years ago
parent
commit
4b3b3b587d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      i2c.h

+ 1
- 1
i2c.h View File

@ -28,7 +28,7 @@ typedef struct {
#elif defined(TARGET_SMT32F0)
#include <stm32f0xx_hal.h>
#define I2C_DELAY_US(x) HAL_Delay(x)
#define I2C_DELAY_US(x) HAL_Delay(((x)/1000)+((x)%1000 == 0 ? 0 : 1))
typedef struct {
} i2c_t;


Loading…
Cancel
Save