Skip to content

Commit

Permalink
Delay enable IRQ
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jul 30, 2023
1 parent 93dc2ab commit 7cd0b5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/serial/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,7 @@ static ssize_t uart_write(FAR struct file *filep, FAR const char *buffer,
size_t buflen)
{
infodumpbuffer("uart_write", (const uint8_t *)buffer, buflen);////
static bool first_time = true; if (first_time) { up_enable_irq(57); first_time = false; }////
FAR struct inode *inode = filep->f_inode;
FAR uart_dev_t *dev = inode->i_private;
ssize_t nwritten = buflen;
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ static int u16550_attach(struct uart_dev_s *dev)
* in the UART
*/

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

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

0 comments on commit 7cd0b5f

Please sign in to comment.