added plateform specific code for GPIOs