So far just includes "open" function, which should be supplied by a port. TODO: Make the module #ifdef'ed.