alternate function setting in gpio_set_af was broken