fix shall not be used before scheduler start
This commit is contained in:
parent
a0fadd4e5a
commit
a11abc823a
|
@ -208,10 +208,10 @@ int rt_hw_i2c_init(void)
|
|||
RT_ASSERT(result == RT_EOK);
|
||||
stm32_i2c_bus_unlock(&soft_i2c_config[i]);
|
||||
|
||||
LOG_D("software simulation %s init done, pin scl: %d, pin sda %d",
|
||||
// LOG_D("software simulation %s init done, pin scl: %d, pin sda %d",
|
||||
soft_i2c_config[i].bus_name,
|
||||
soft_i2c_config[i].scl,
|
||||
soft_i2c_config[i].sda);
|
||||
soft_i2c_config[i].sda;
|
||||
}
|
||||
|
||||
return RT_EOK;
|
||||
|
|
|
@ -30,7 +30,7 @@ rt_err_t rt_i2c_bus_device_register(struct rt_i2c_bus_device *bus,
|
|||
|
||||
res = rt_i2c_bus_device_device_init(bus, bus_name);
|
||||
|
||||
LOG_I("I2C bus [%s] registered", bus_name);
|
||||
// LOG_I("I2C bus [%s] registered", bus_name);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue