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

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
Yadnik
Posts: 65
Joined: Thu May 13, 2021 6:01 am

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

Post by Yadnik » Fri Aug 06, 2021 5:41 pm

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!!

mhelm
Posts: 3
Joined: Tue Aug 25, 2020 2:09 pm

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

Post by mhelm » Tue Aug 10, 2021 2:00 pm

No this isn't currently supported in the Zephyr port, but it should be straightforward to add if you're interested in contributing.

Yadnik
Posts: 65
Joined: Thu May 13, 2021 6:01 am

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

Post by Yadnik » Tue Aug 10, 2021 3:23 pm

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?

Post Reply