mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Add I2C clockspeed selection
Default is normal speed (400 kHz). Added 800kHz and 1200kHz selection (overclocking).
This commit is contained in:
parent
57fc0f0a57
commit
cce3a1d755
2 changed files with 25 additions and 1 deletions
|
@ -23,6 +23,7 @@ typedef enum I2CDevice {
|
|||
I2CDEV_MAX = I2CDEV_2,
|
||||
} I2CDevice;
|
||||
|
||||
void i2cSetClockSelect(uint8_t clockSelect);
|
||||
void i2cInit(I2CDevice index);
|
||||
bool i2cWriteBuffer(uint8_t addr_, uint8_t reg_, uint8_t len_, uint8_t *data);
|
||||
bool i2cWrite(uint8_t addr_, uint8_t reg, uint8_t data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue