s32k1xx:Apply Style Changes from code review
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
592e946bdf
commit
1760057e29
@ -786,7 +786,7 @@ static int s32k1xx_dma_setup(struct uart_dev_s *dev)
|
||||
/* Configure for circular DMA reception into the RX FIFO */
|
||||
|
||||
config.saddr = priv->uartbase + S32K1XX_LPUART_DATA_OFFSET;
|
||||
config.daddr = (uint32_t) priv->rxfifo;
|
||||
config.daddr = (uint32_t)priv->rxfifo;
|
||||
config.soff = 0;
|
||||
config.doff = 1;
|
||||
config.iter = RXDMA_BUFFER_SIZE;
|
||||
@ -1804,7 +1804,7 @@ static void s32k1xx_dma_send(struct uart_dev_s *dev)
|
||||
config.ssize = EDMA_8BIT;
|
||||
config.dsize = EDMA_8BIT;
|
||||
config.nbytes = sizeof(dev->dmatx.buffer[0]);
|
||||
config.saddr = (uint32_t) dev->dmatx.buffer;
|
||||
config.saddr = (uint32_t)dev->dmatx.buffer;
|
||||
config.daddr = priv->uartbase + S32K1XX_LPUART_DATA_OFFSET;
|
||||
config.soff = sizeof(dev->dmatx.buffer[0]);
|
||||
config.doff = 0;
|
||||
@ -1821,7 +1821,7 @@ static void s32k1xx_dma_send(struct uart_dev_s *dev)
|
||||
if (dev->dmatx.nbuffer)
|
||||
{
|
||||
config.iter = priv->dev.dmatx.nlength;
|
||||
config.saddr = (uint32_t) priv->dev.dmatx.nbuffer;
|
||||
config.saddr = (uint32_t)priv->dev.dmatx.nbuffer;
|
||||
|
||||
s32k1xx_dmach_xfrsetup(priv->txdma, &config);
|
||||
}
|
||||
|
@ -115,11 +115,11 @@
|
||||
/* Verify that DMA has been enabled and the DMA channel has been defined.
|
||||
*/
|
||||
|
||||
# if defined(SERIAL_HAVE_TXDMA) || defined(SERIAL_HAVE_RXDMA)
|
||||
#if defined(SERIAL_HAVE_TXDMA) || defined(SERIAL_HAVE_RXDMA)
|
||||
# ifndef CONFIG_S32K1XX_EDMA
|
||||
# error S32K1XX LPUART receive or transmit DMA requires CONFIG_S32K1XX_EDMA
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(SERIAL_HAVE_RXDMA)
|
||||
/* Currently RS-485 support cannot be enabled when RXDMA is in use due to
|
||||
|
Loading…
Reference in New Issue
Block a user