[riot-notifications] [RIOT-OS/RIOT] boards/esp32: changes the approach for configurations of UART interfaces in board definitions (#11294)

MrKevinWeiss notifications at github.com
Tue Apr 2 09:27:58 CEST 2019


MrKevinWeiss commented on this pull request.



> -                 _uart_config(uart);
-                 break;
-        #endif
-        #if UART_NUMOF > 1
-        case 1:  periph_module_enable(PERIPH_UART1_MODULE);
-                 _uart_config(uart);
-                 break;
-        #endif
-        #if UART_NUMOF > 2
-        case 2:  periph_module_enable(PERIPH_UART2_MODULE);
-                 _uart_config(uart);
-                 break;
-        #endif
-        default: break;
-    }
+    CHECK_PARAM (uart < UART_NUMOF);

If there is a plan to do an update later that is fine then.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11294#discussion_r271163914
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190402/96191867/attachment.html>


More information about the notifications mailing list