mirror of
https://github.com/whowechina/chu_pico.git
synced 2024-11-27 20:20:50 +01:00
Again better timing
This commit is contained in:
parent
7f991e3d5f
commit
f8a8f1f0a2
Binary file not shown.
@ -8,7 +8,7 @@
|
|||||||
#define I2C_PORT i2c0
|
#define I2C_PORT i2c0
|
||||||
#define I2C_SDA 16
|
#define I2C_SDA 16
|
||||||
#define I2C_SCL 17
|
#define I2C_SCL 17
|
||||||
#define I2C_FREQ 633*1000
|
#define I2C_FREQ 620*1000
|
||||||
|
|
||||||
#define I2C_HUB_EN 19
|
#define I2C_HUB_EN 19
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@ static inline void i2c_hub_init()
|
|||||||
static inline void i2c_select(i2c_inst_t *i2c_port, uint8_t chn)
|
static inline void i2c_select(i2c_inst_t *i2c_port, uint8_t chn)
|
||||||
{
|
{
|
||||||
i2c_write_blocking_until(i2c_port, I2C_HUB_ADDR, &chn, 1, false, time_us_64() + 1000);
|
i2c_write_blocking_until(i2c_port, I2C_HUB_ADDR, &chn, 1, false, time_us_64() + 1000);
|
||||||
sleep_us(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user