Pixhawk - Enabling GPIO output

Hi and thanks for the answer.

But I did not make it yet to enable it.
I Think I also have a problem with including the right headers.

#include <math.h>
# ifndef MATLAB_MEX_FILE
	#include <stdio.h>
	#include <fcntl.h>
	#include <sys/types.h>
	#include <sys/stat.h>
	#include "stm32_gpio.h"
	#include "drivers/drv_gpio.h"
	//#include "drivers/boards/px4fmu-v2/board_config.h"
# endif

I could not manage to include the last boar_config file, due to some error while building my function.
I tried to use the definition from drv_gpio.h
# define GPIO_SERVO_6 (1<<5) /**< servo 6 output */
but I think it is probably the wrong one.

I also inserted the set FMU and Set AUX_Mode, but it did not work.
(It also threw me an error. I think pmw4 was not know. - and I did not have a camera part in this referred code??..)
But regarding this, as far as I understand the webpage, I should be able to use the aux pins 5 &6 anyway due to default virtual pin setup.

Also the commands px_arch_gpio don’t exist for me - why? Is there a way to determine which board I exactly have oir what am I missing? I used:

    stm32_gpioinit();
    stm32_unconfiggpio(GPIO_SERVO_6);
    stm32_configgpio(GPIO_SERVO_6);
    stm32_gpiowrite(GPIO_SERVO_6,1);

Well… thanks ahead again and I wrote so late because I tried … but yeah. Did not work