merge with mbedmicro
Conflicts resolved. gpio_init_in will call gpio_mode after gpio_dir