4 ms·
Noted on the Infineon devices! ;) Yes, it will timeout if the device doesn't respond, thanks to the timeout logic in the STM32H7's I2C block.[0] If the block
by bcantrill 5y ago
Noted on the Infineon devices! ;)
Yes, it will timeout if the device doesn't respond, thanks to the timeout logic in the STM32H7's I2C block.[0] If the block didn't have that logic, Hubris would still make it relatively easy to do that, though, as one would just perform the closed receive for the interrupt or a timer notification. (An example of a closed receive on a timer can be found at [1].)
[0] https://github.com/oxidecomputer/hubris/blob/01b5af3d54348bad1ad0d64cc17abde58fa61979/drv/stm32h7-i2c/src/lib.rs#L249-L274 https://github.com/oxidecomputer/hubris/blob/01b5af3d54348ba...
[1] https://github.com/oxidecomputer/hubris/blob/01b5af3d54348bad1ad0d64cc17abde58fa61979/sys/userlib/src/hl.rs#L626-L645 https://github.com/oxidecomputer/hubris/blob/01b5af3d54348ba...