Skip to content

[Feature] STM32的drv_hard_i2c缺少一个设置I2c速度的接口 #10635

@vangao-gg

Description

@vangao-gg

Describe problem solved by the proposed feature

就像UART一样,在应用层通过name找到设备之后,可以通过config来设置uart的属性;
目前的drv_hard_i2c中缺少这个接口,所以无法从上层来设置I2c的速度,而原始速度只有100khz;

Describe your preferred solution

所以希望在drv_hard_i2c中补充这个config接口,因为内核的ops中就是有i2c_bus_control的接口的;

Describe possible alternatives

如果直接修改drv_hard_i2c里面的参数,把100k改掉,这样的方式还是不够优雅;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions