]> git.donarmstrong.com Git - qmk_firmware.git/commit
Parameterise STM32 I2C pin modes and timing parameters. (#5671)
authorNick Brassel <nick@tzarc.org>
Sat, 1 Jun 2019 23:04:09 +0000 (09:04 +1000)
committerDrashna Jaelre <drashna@live.com>
Sat, 1 Jun 2019 23:04:09 +0000 (16:04 -0700)
commit155be34a1d2b782a73318cc507315b33cc86cc49
tree842b3fa9e4881d18932a0e01666dec5a8144d3b2
parent4f788c2ae90583f64e0cec6545a3da75a5aff0f8
Parameterise STM32 I2C pin modes and timing parameters. (#5671)

I2C timing parameters were seemingly set up for an STM32F303 target MCU, at a specific clock speed. This commit allows specifying the timing parameters via config.h, allowing other STM32 MCUs to be targeted, potentially at different clock frequencies.
Alternate function modes for the I2C pins are now also configurable, allowing for remapping to other pins.
docs/i2c_driver.md
drivers/arm/i2c_master.c
drivers/arm/i2c_master.h