On Mon, Feb 4, 2019 at 1:16 PM Sven Schwermer <firstname.lastname@example.org> wrote:
I have written a bitbanged 1-wire driver for the nRF52 to interface with
DS18B20 sensors. Since it seems to be impossible to read back from a
pulled up open-drain driver without clearing the DIR register on the
nRF52, I have timing issues, because gpio_pin_configure just takes too
Putting device-specific hardware accesses into the driver solves the
issue but completely defeats the purpose of a platform-agnostic driver.
I also can't just write a nRF-specific backend, since the GPIO hardware
is managed by the actual nRF GPIO driver and the lower level functions
in said driver are not meant to be called (static, no public declarations).
How does one write timing critical bitbanged drivers in Zephyr?
There is an open issue:https://github.com/zephyrproject-rtos/zephyr/issues/11917
Please feel free to review and provide feedback.
Any pointers are welcome :-)