Fixes to make I2C work for SMT32

This commit is contained in:
dario
2023-08-10 22:54:18 +02:00
parent 266cc46a09
commit 8ffba482de
9 changed files with 64 additions and 53 deletions

View File

@@ -30,7 +30,7 @@ namespace sta
void fill(uint8_t value, size_t count) override;
private:
I2C_HandleTypeDef * handle_;
const uint32_t timeout_ = HAL_MAX_DELAY;
const uint32_t timeout_ = 1000;
};
class STM32I2CDevice : public I2CDevice