The code blocks interrupts to avoid messing up reading the device, but the only requirement according to the datasheet is:
a high pulse has a maximum of 50 uS.
When you keep interrupt routines short, this deadline will always be met. For a RtOS enabled devices this is especially the case, as the thread can be switched to finish the procedure after an interrupt.
The code blocks interrupts to avoid messing up reading the device, but the only requirement according to the datasheet is:
When you keep interrupt routines short, this deadline will always be met. For a RtOS enabled devices this is especially the case, as the thread can be switched to finish the procedure after an interrupt.