[PATCH 0/2] bsp/atsam: Merge USART and UART code and add optional Rx DMA

Gedare Bloom gedare at rtems.org
Fri Jan 14 16:52:26 UTC 2022


BSP-specific looks ok to me. Back port to 5 is also fine as bugfix.

On Thu, Jan 13, 2022 at 12:38 AM Christian Mauderer
<christian.mauderer at embedded-brains.de> wrote:
>
> Hello,
>
> the UART/USART of the ATSAM doesn't have any FIFO buffer. Therefore
> every received character has to be processed before the next one
> arrives. In situations with a high interrupt load or during long
> interrupt locks, this might not work reliable and the UART/USART can
> loose characters.
>
> This patch set first merges the USART and UART code on the ATSAM. The
> code was identical except for very few lines. After that it adds an
> option to enable a DMA for the Rx path.
>
> The DMA is a limited resource on this chip so I didn't enable the usage
> of the DMA by default. It has to be explicitly enabled with an ioctl
> call on an opened port. With that existing applications shouldn't note a
> difference and applications that have difficult load situations can
> enable the DMA.
>
> The problem exists in 5 and 6. I would like to add the patch for both
> branches (tickets #4577 and #4578).
>
> Best regards
>
> Christian
>
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list