Serial ports API for the platform.