Skip to content
Snippets Groups Projects
Commit 187018e4 authored by fxk8y's avatar fxk8y :spider:
Browse files

Better comment; event queue settings

parent 3925b16f
No related branches found
No related tags found
No related merge requests found
......@@ -88,11 +88,12 @@ namespace SiliconTorch {
ESP_ERROR_CHECK(uart_set_pin(_ch, tx, rx, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE));
//uart_intr_config(_ch);
ESP_ERROR_CHECK(uart_driver_install(_ch, MTU * 2, 0, 20, &uartEvQ, 0)); // txBuf = 0; queue size = 32; TODO: evaluate!!!
ESP_ERROR_CHECK(uart_driver_install(_ch, MTU * 2, 0, 32, &uartEvQ, 0)); // txBuf = 0; queue size = 32; TODO: evaluate!!!
ESP_ERROR_CHECK(uart_set_mode(_ch, UART_MODE_UART));
// WARNING: The following call breaks EVERYTHING!
// WARNING: RX timeout MUST be > 0 !!
// It determines after how much symbols pause an event is raised (event queue uses TOUT-feature internally)
uart_set_rx_timeout(_ch, 5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment