-
Notifications
You must be signed in to change notification settings - Fork 47
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
Make disabling interrupts optional #19
Comments
Glad to hear that Yes, this sounds reasonable. Actually, I thought of such an option, too. But due to lack of time I did not change it yet. I agree that having this option "globally" is enough, i.e. we don't need to pass it to each Well, since you asked that nicely: If you are able to do a pull request, it is very welcome! |
@pasko-zh I'll open a PR as soon as I have time to finish it. Do you think a |
I think it is enough with a |
@pasko-zh At least not for my use case. I suppose a |
A huge thank you for this library. It's easily the best I2C driver one can have on ESP8266, in terms of speed and usability.
However, I recently had some problems using this library, sampling an IMU via I2C at 1 kHz and doing continuous WebSocket communication and PWM realized by the HW timer simultaneously. When the interrupts were disabled during I2C transactions, there were frequent stalls / resets, probably caused by some clashes due to missed interrupts. I then commented out the lines where the interrupts were disabled, and stalls became less frequent. (There are still some, but they aren't probably related to
brzo_i2c
.)Therefore it would be great to have a configuration option in
brzo_i2c.h
where the user could opt out of disabling the interrupts. This should be a simple addition, and the default behaviour should be left unchanged.I would be able to supply the patch as a pull request if desired.
The text was updated successfully, but these errors were encountered: