1 2 3 4 5 6 7
#include "port.h" void port_init( port_t *port, port_type_t type, uint16_t number ) { port->number = number; port->type = type; }