Add GPIO configuration helper function

This commit adds a 'gpio_set_port_config' functions that allows user
to define all required pin configuration for a project in a single
table instead of using multiple 'gpio_set_mode' calls.