> static const int all_bank_pins[] = { > MXS_BANK0_PINS, > MXS_BANK1_PINS, > MXS_BANK2_PINS, > MXS_BANK3_PINS, > MXS_BANK4_PINS, > }; > bank_pins = all_bank_pins[PAD_PANK(gp)]; Good one! But how about the changes Marek suggested about name_to_gpio_number? Robert.