forked from Imagelibrary/rtems
aarch64/zynqmp: Use IRQs for management console
Swap the zynqmp management console to interrupt-driven operation to avoid losing data in under-polled situations.
This commit is contained in:
committed by
Joel Sherrill
parent
e49e8daf3d
commit
3d8fa0ef00
@@ -225,7 +225,7 @@ rtems_status_code console_initialize(
|
|||||||
if ( zynqmp_mgmt_uart_context.port != 0 ) {
|
if ( zynqmp_mgmt_uart_context.port != 0 ) {
|
||||||
rtems_termios_device_install(
|
rtems_termios_device_install(
|
||||||
"/dev/ttyMGMT0",
|
"/dev/ttyMGMT0",
|
||||||
&ns16550_handler_polled,
|
&ns16550_handler_interrupt,
|
||||||
NULL,
|
NULL,
|
||||||
&zynqmp_mgmt_uart_context.base
|
&zynqmp_mgmt_uart_context.base
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -45,6 +45,8 @@
|
|||||||
|
|
||||||
#include <bspopts.h>
|
#include <bspopts.h>
|
||||||
|
|
||||||
|
#define BSP_FEATURE_IRQ_EXTENSION
|
||||||
|
|
||||||
#ifndef ASM
|
#ifndef ASM
|
||||||
|
|
||||||
#include <bsp/default-initial-extension.h>
|
#include <bsp/default-initial-extension.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user