Installing interrupt for Zynq UART0
Fernando Domínguez Pousa
fdpousa at gmv.com
Thu Sep 17 17:02:08 UTC 2020
Hi all,
I'm trying to install an interrupt for UART0 on Xilinx Zynq, with rtems_interrupt_handler_install. If I use RTEMS_INTERRUPT_SHARED I always get RTEMS_TOO_MANY as a result. If I use RTEMS_INTERRUPT_UNIQUE, I got RTEMS_RESOURCE_IN_USE. With RTEMS_INTERRUPT_REPLACE also fails.
I tried rtems_interrupt_handler_remove before install but I got RTEMS_UNSATISFIED.
Maybe the problem is in how I'm calling the installer:
rtems_interrupt_handler_install(ZYNQ_IRQ_UART_0, "UART1", RTEMS_INTERRUPT_UNIQUE, (rtems_interrupt_handler)handlerUart0, NULL);
I also say that I removed CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER from RTEMS configuration and I am using zynq_uart_initialize() before calling the install.
The objective is to create a handler to process raw UART incoming data (no chars).
Thanks in advance,
Fer.
P Please consider the environment before printing this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20200917/a064602b/attachment.html>
More information about the users
mailing list