cpu: created generic interface for GPIO driver

cpu: added template to implement Atmega128a GPIO driver

factory: created generic interface for Platform factory