XC code:
Code: Select all
buffered out port:32 buffered_output_port = /* port */;
Code: Select all
port_t buffered_output_port = /* port */;
port.start_buffered(buffered_output_port, 32);
// how can I now change it from an "in" port (as is the default) to an "out" port?
Code: Select all
port_set_inout_data
Code: Select all
inline void port_set_inout_data(port_t __p)
Set a port drive out the data value (default state).
Parameters:
__p – Port to change the mode of.
Does called "set_port_inout_data(port)" set the port as an output port?