]> granicus.if.org Git - esp-idf/commitdiff
Update examples in uart.h
authorJeroen Domburg <jeroen@espressif.com>
Thu, 15 Dec 2016 01:44:21 +0000 (09:44 +0800)
committerJeroen Domburg <jeroen@espressif.com>
Thu, 15 Dec 2016 01:44:21 +0000 (09:44 +0800)
components/driver/include/driver/uart.h

index 951ada929a2d1cdfe102bded363c67b7dc8fcf1b..1d5320601e869a9c4284d1292dd14cfd84bb7209 100644 (file)
@@ -610,10 +610,10 @@ esp_err_t uart_flush(uart_port_t uart_num);
  * //b1. Setup UART driver(with UART queue)\r
  * QueueHandle_t uart_queue;\r
  * //parameters here are just an example, tx buffer size is 2048\r
- * uart_driver_install(uart_num, 1024 * 2, 1024 * 2, 10, UART_INTR_NUM, &uart_queue);\r
+ * uart_driver_install(uart_num, 1024 * 2, 1024 * 2, 10, &uart_queue, 0);\r
  * //b2. Setup UART driver(without UART queue)\r
  * //parameters here are just an example, tx buffer size is 0\r
- * uart_driver_install(uart_num, 1024 * 2, 0, 10, UART_INTR_NUM, NULL);\r
+ * uart_driver_install(uart_num, 1024 * 2, 0, 10, NULL, 0);\r
  *@endcode\r
  *-----------------------------------------------------------------------------*\r
  * @code{c}\r