1 Reply Latest reply on May 25, 2015 9:21 AM by Intel Corporation

    mra:: Using UART_1_RTS and UART_1_CTS  as GPIOs

    IntelAnonymous

      Good day,

       

      maybe a silly question, but is it possible to use UART1 as a serial interface with while using the following Pins as GPIOs:

       

      GP128 (13) UART_1_CTS

      GP129 (25) UART_1_RTS

       

      Example:

       

      [code]

      mraa_uart_context uart;

      uart = mraa_uart_init(0);

      port = mraa_uart_get_dev_path(uart);

       

      // Open UART, do sth. with the UART

      // [...]

       

       

      // Somewhere else in the program

      mraa::Gpio* pMyIO1 = new mraa::Gpio(13);

      mraa::Gpio* pMyIO2 = new mraa::Gpio(25);

       

      pMyIO1->write(1);

      pMyIO2->write(0);

      [/code]