Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Wire): in case of slave, (re)enable interrupt when configuring clock #1818

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

ABOSTM
Copy link
Contributor

@ABOSTM ABOSTM commented Aug 29, 2022

Summary
fix(Wire): in case of slave, (re)enable interrupt when configuring clock

Because TwoWire::setClock() calls i2c_setTiming()
which disable/(re)enable I2C Hardware,
it is necessary to restore interrupts.

Fixes #1804

Because TwoWire::setClock() calls i2c_setTiming()
which disable/(re)enable I2C Hardware,
it is necessary to restore interrupts.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
@fpistm fpistm added this to In progress in STM32 core based on ST HAL via automation Aug 30, 2022
@fpistm fpistm added this to the 2.4.0 milestone Aug 30, 2022
@fpistm fpistm merged commit 08334ff into stm32duino:main Aug 30, 2022
STM32 core based on ST HAL automation moved this from In progress to Done Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

I2C: Wrong behavior with function setClock
2 participants