arch/hc/src/m9s12/m9s12_serial.c: Appease nxstyle

This commit is contained in:
YAMAMOTO Takashi 2020-11-10 09:17:58 +09:00 committed by Xiang Xiao
parent 19badbda24
commit 2af9bf33b7

View File

@ -1,7 +1,8 @@
/****************************************************************************
* arch/hc/src/m9s12/m9s12_serial.c
*
* Copyright (C) 2009, 2011-2012, 2016-2017 Gregory Nutt. All rights reserved.
* Copyright (C) 2009, 2011-2012, 2016-2017 Gregory Nutt.
* All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -242,7 +243,8 @@ static inline uint8_t up_serialin(struct up_dev_s *priv, int offset)
* Name: up_serialout
****************************************************************************/
static inline void up_serialout(struct up_dev_s *priv, int offset, uint8_t value)
static inline void up_serialout(struct up_dev_s *priv, int offset,
uint8_t value)
{
putreg8(value, priv->uartbase + offset);
}
@ -409,9 +411,10 @@ static void up_shutdown(struct uart_dev_s *dev)
* the setup() method is called, however, the serial console may operate in
* a non-interrupt driven mode during the boot phase.
*
* RX and TX interrupts are not enabled when by the attach method (unless the
* hardware supports multiple levels of interrupt enabling). The RX and TX
* interrupts are not enabled until the txint() and rxint() methods are called.
* RX and TX interrupts are not enabled when by the attach method (unless
* the hardware supports multiple levels of interrupt enabling). The RX
* and TX interrupts are not enabled until the txint() and rxint() methods
* are called.
*
****************************************************************************/
@ -432,6 +435,7 @@ static int up_attach(struct uart_dev_s *dev)
priv->im = SCI_CR2_RIE;
up_setsciint(priv);
}
return ret;
}
@ -508,6 +512,7 @@ static int up_interrupt(int irq, void *context, void *arg)
handled = true;
}
}
return OK;
}
@ -638,6 +643,7 @@ static void up_send(struct uart_dev_s *dev, int ch)
{
regval |= SCI_DRH_T8;
}
up_serialout(priv, HCS12_SCI_DRH_OFFSET, regval);
}