Skip to content

Commit

Permalink
No DMA for UART4
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlK90 committed Mar 25, 2021
1 parent 7d44e80 commit b5a4cce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions os/hal/ports/GD/GD32VF103/USART/hal_uart_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,16 @@
#error "UART4 not present in the selected device"
#endif

#if GD32_UART_USE_UART4
#if !GD32_HAS_UART4
#error "UART4 not present in the selected device"
#endif

#if defined(GD32VF103)
#error "UART4 DMA access not supported in this platform"
#endif
#endif /* GD32_UART_USE_UART4 */

#if !GD32_UART_USE_USART0 && !GD32_UART_USE_USART1 && \
!GD32_UART_USE_USART2 && !GD32_UART_USE_UART3 && \
!GD32_UART_USE_UART4
Expand Down

0 comments on commit b5a4cce

Please sign in to comment.