Commit 745c200
committed
[I2C] Timing can be hard coded
To avoid time spent to compute the I2C timing, it can be defined in the variant.h or build_opt.h or hal_conf_extra.h with: * I2C_TIMING_SM for Standard Mode (100kHz) * I2C_TIMING_FM for Fast Mode (400kHz) * I2C_TIMING_FMP for Fast Mode Plus (1000kHz) Example for a STM32F0xx using HSI clock as I2C clock source: #define I2C_TIMING_SM 0x00201D2B #define I2C_TIMING_FM 0x0010020A Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>1 parent 73d90c5 commit 745c200
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
479 | 482 | | |
| 483 | + | |
480 | 484 | | |
481 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
482 | 489 | | |
| 490 | + | |
483 | 491 | | |
484 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
485 | 496 | | |
| 497 | + | |
486 | 498 | | |
487 | 499 | | |
488 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
| |||
0 commit comments