mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Add CLI variable i2c_overclock
Add i2c_overclock to master config and bump version Start using the i2c_overclock CLI setting to initialize i2c clock speed selector for F1 targets.
This commit is contained in:
parent
cce3a1d755
commit
eca7d9fd21
4 changed files with 5 additions and 1 deletions
|
@ -168,6 +168,7 @@ void init(void)
|
|||
// Configure the System clock frequency, HCLK, PCLK2 and PCLK1 prescalers
|
||||
// Configure the Flash Latency cycles and enable prefetch buffer
|
||||
SetSysClock(masterConfig.emf_avoidance);
|
||||
i2cSetClockSelect(masterConfig.i2c_overclock);
|
||||
#endif
|
||||
|
||||
#ifdef USE_HARDWARE_REVISION_DETECTION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue