You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/09/30 12:09:18 UTC

[incubator-nuttx] 03/03: nrf52_lowputc.c: fix compilation error for nrf52832 which has limited baud rate support

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit c18e7bb42265c6c40c0b1ab10cd913a08c43dff0
Author: raiden00pl <ra...@railab.me>
AuthorDate: Tue Sep 29 17:53:15 2020 +0200

    nrf52_lowputc.c: fix compilation error for nrf52832 which has limited baud rate support
---
 arch/arm/src/nrf52/nrf52_lowputc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/src/nrf52/nrf52_lowputc.c b/arch/arm/src/nrf52/nrf52_lowputc.c
index 865090f..06ea3b9 100644
--- a/arch/arm/src/nrf52/nrf52_lowputc.c
+++ b/arch/arm/src/nrf52/nrf52_lowputc.c
@@ -161,11 +161,13 @@ static void nrf52_setbaud(uintptr_t base, const struct uart_config_s *config)
           break;
         }
 
+#ifdef UART_BAUDRATE_31250
       case 31250:
         {
           br = UART_BAUDRATE_31250;
           break;
         }
+#endif
 
       case 38400:
         {
@@ -173,11 +175,13 @@ static void nrf52_setbaud(uintptr_t base, const struct uart_config_s *config)
           break;
         }
 
+#ifdef UART_BAUDRATE_56000
       case 56000:
         {
           br = UART_BAUDRATE_56000;
           break;
         }
+#endif
 
       case 57600:
         {