Application-specific peripheral adapting