bitbang-hal icon indicating copy to clipboard operation
bitbang-hal copied to clipboard

Fix Serial Write

Open Javier-varez opened this issue 3 years ago • 4 comments

In order to guarantee the width of the start bit in a serial transfer we need ot make sure that we are waiting for the correct amount of time. Since the timer is already started we have no guarantee of the current count value and therefore should add an initial wait.

Javier-varez avatar Mar 15 '21 19:03 Javier-varez

I would rather take the solution in #10 but it needs to be updated to support embedded-time. Would you be able to take that on?

sajattack avatar Mar 16 '21 18:03 sajattack

I fully agree, that would be a much better solution. I'll give it a go!

Javier-varez avatar Mar 16 '21 23:03 Javier-varez

I'm not quite sure I understand the strategy to use the embedded time crate. As far as I have seen no timer hardware abstraction layers currently use the types and traits defined there, so the serial port will not work with them?

Javier-varez avatar Mar 22 '21 19:03 Javier-varez

I was under the impression there was better adoption.

sajattack avatar Mar 25 '21 14:03 sajattack