Skip to content

Commit

Permalink
stm32f0/i2c: define h7 timings
Browse files Browse the repository at this point in the history
Signed-off-by: Timofey Titovets <[email protected]>
  • Loading branch information
nefelim4ag committed Sep 20, 2024
1 parent 9f6dd57 commit 4c75708
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stm32/stm32f0_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ static const struct timingr i2c_timings[3] = {
{.presc = 0xB, .scll = 0x13, .sclh = 0xF, .sdadel = 0x2, .scldel = 0x4},
{.presc = 0x5, .scll = 0x9, .sclh = 0x3, .sdadel = 0x3, .scldel = 0x3},
{.presc = 0x5, .scll = 0x3, .sclh = 0x1, .sdadel = 0x0, .scldel = 0x1},
#elif CONFIG_MACH_STM32H7
{.presc = 0xD, .scll = 0x23, .sclh = 0x1F, .sdadel = 0x2, .scldel = 0x4},
{.presc = 0x6, .scll = 0x10, .sclh = 0xB, .sdadel = 0x2, .scldel = 0x3},
{.presc = 0x2, .scll = 0xA, .sclh = 0x7, .sdadel = 0x0, .scldel = 0x1},
#else
{.presc = 0xB, .scll = 0x13, .sclh = 0xF, .sdadel = 0x2, .scldel = 0x4},
{.presc = 0xB, .scll = 0x13, .sclh = 0xF, .sdadel = 0x2, .scldel = 0x4},
Expand Down

0 comments on commit 4c75708

Please sign in to comment.