Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RP2040] i2c: fix speed calculation #382

Merged
merged 1 commit into from
Nov 27, 2023

Commits on Nov 23, 2023

  1. rp2040: i2c: fix speed calculation

    The former speed calculation where way off the requested i2c speeds.
    This fix, which is based on the official pico-sdk implementation fixes
    the calculation for the high and low times:
    
     | Speed | Before | After |
     | ------| ------ | ----- |
     | 100k  | 126k   | 94k   |
     | 400k  | 660k   | 346k  |
     | 1000k | - (*)  | 760k  |
    
    (*) Failed to start any transaction in my test setup.
    KarlK90 committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    7d9212d View commit details
    Browse the repository at this point in the history