-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu/stm32: fix periph_i2c for F1, F2, L1 and F4 families
- boot the I2C after init in low power mode - otherwise I2C will consume more power until the first time it is used, which is surprising - STM32 F1 only: reconfigure SCL and SDA as GPIOs while the I2C peripheral is powered down - When the I2C peripheral is not clocked, it drives SCL and SDA down. This will dissipate power across the pull up resistor. - improve debug output
- Loading branch information
Showing
1 changed file
with
109 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters