Skip to content

Commit

Permalink
Disable UART Interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Nov 6, 2023
1 parent b244f85 commit 84704c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/serial/uart_16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ static void u16550_shutdown(struct uart_dev_s *dev)

static int u16550_attach(struct uart_dev_s *dev)
{
FAR struct u16550_s *priv = (FAR struct u16550_s *)dev->priv;
//// TODO: FAR struct u16550_s *priv = (FAR struct u16550_s *)dev->priv;
int ret;

#ifdef CONFIG_CLK
Expand All @@ -934,15 +934,16 @@ static int u16550_attach(struct uart_dev_s *dev)

/* Attach and enable the IRQ */

ret = irq_attach(priv->irq, u16550_interrupt, dev);
ret = 0;//// TODO
//// TODO: ret = irq_attach(priv->irq, u16550_interrupt, dev);
#ifndef CONFIG_ARCH_NOINTC
if (ret == OK)
{
/* Enable the interrupt (RX and TX interrupts are still disabled
* in the UART
*/

up_enable_irq(priv->irq);
//// TODO: up_enable_irq(priv->irq);

#ifdef HAVE_16550_UART_DMA
if (priv->chanrx)
Expand Down

0 comments on commit 84704c9

Please sign in to comment.