Page 1 of 1

uart.init() method for the Zephyr port of MicroPython

Posted: Fri Aug 06, 2021 5:41 pm
by Yadnik
Can someone please tell me if uart.init() method is supported in the Zephyr port of MicroPython or is there any other alternative that I can use?
On trying to do uart.init() I get an error as follows:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'UART' object has no attribute 'init'

Thank you!!

Re: uart.init() method for the Zephyr port of MicroPython

Posted: Tue Aug 10, 2021 2:00 pm
by mhelm
No this isn't currently supported in the Zephyr port, but it should be straightforward to add if you're interested in contributing.

Re: uart.init() method for the Zephyr port of MicroPython

Posted: Tue Aug 10, 2021 3:23 pm
by Yadnik
Thanks mhelm,
I would love to.Although it is not so generic, but is there a place I can take references from or any document I can follow.
Do I just have to make changes to the machine_uart.c file?