added map structure with dynamic pointers for multi-gpio handling