Instead of some magic twiddling I'd recommend using this:
mraa_uart_context uart; uart = mraa_uart_init(0);
Job done. And it'll work on other boards like galileo etc
Instead of some magic twiddling I'd recommend using this:
mraa_uart_context uart; uart = mraa_uart_init(0);
Job done. And it'll work on other boards like galileo etc