Please use gpio_setup_output and gpio_setup_input instead, as these work for F1 and F4.