As an example of what I'm talking about, the module_uart.1v1 and app_uart_example code has:
Code: Select all
on stdcore[0]: port p_rx = PORT_UART_RX;
on stdcore[0]: port p_tx = PORT_UART_TX;
Is this just to allow the programmer to do some basic in/out enforcement at the compiler level?
What would XMOS device do if passed an input port to a method expecting an output port - such as in the UART case where there's no direction qualifier?
Landon