Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

UART Configuration

$
0
0

Good morning, after investigating in the forums and documentation of the new SSP v1.3.0, we have a problem when configuring a UART at runtime. We want to change the parity parameters, data bit and stop bit. But we are using the Communications Framework on sf_uart_comms, which in turn uses the rsci_uart uart Driver and what is recommended in the forums does not seem to work.

 

      static uart_cfg_t uartNewCfg;

 

        memcpy(&uartNewCfg,g_uart_serial.p_cfg , sizeof(uart_cfg_t));

 

        uartNewCfg.data_bits = UART_DATA_BITS_8;

        uartNewCfg.parity = UART_PARITY_EVEN;

        uartNewCfg.stop_bits = UART_STOP_BITS_1;

 

        g_uart_serial.p_api->close(g_uart_serial.p_ctrl);

        tx_thread_sleep(10);

        g_uart_serial.p_api->open(g_uart_serial.p_ctrl, &uartNewCfg);

 

 

i appreciated some example or some recommendation as I have also tried to close the framework and reopen but it still does not work. Thank you very much


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>