-
-
Notifications
You must be signed in to change notification settings - Fork 86
Wire::setClock() only allows exact values of 100kHz, 400kHz, and 1 MHz #68
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
Comments
Since we are using the FSP driver code here I suggest to raise the issue over at the fsp respository. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I would keep this open until we have an upstream fix, since the issue is reflected in our API |
I reported this upstream as per @aentinger's advice: renesas/fsp#282 |
One of things that was done in the chipkit core is to extend the WIRE API a bit. |
I believe we'd be open to accept contributions to solve this issue, even if they bypass the FSP layer, like I've already done for SPI (see #45). Otherwise we've got to defer this until Renesas fixes it upstream 🤷 . It's a bandwidth problem 😞 . |
[Arduino FreeRTOS] Add support for Uno R4 WiFi and Minima
[Arduino FreeRTOS] Add support for Uno R4 WiFi and Minima Former-commit-id: bda4a18
The case statements in void
TwoWire::setClock(uint32_t freq)
are at odds with Wire for Uno R3.Uno R3 allows a range of clock values.
The R4 boards only allow values in this enum:
The I2C standard suggest you should allow the best match possible to the requested clock.
The text was updated successfully, but these errors were encountered: