Allow to populate digital peripheral interface

This was done by refactoring smpc_peripheral_digital_port() into
another function: smpc_peripheral_digital_get().
Check how many peripherals are connected