Could anyone explain me how the pin mapping in the MRAA API for Galileo Gen 2 works? The only explanation I've got so far is " AIO pins are treated as 0-5 in http://iotdk.intel.com/docs/master/mraa/aio_8h.html# a2fe635f28ab777569b19a7ffe8e557d1 mraa_aio_init() but as 14-19 for everything else. Therefore use mraa_gpio_init(14) to use A0 as a Gpio", but that doesn't explain to much about how the mapping for the peripherals work. If I want to use a specific pin for a specific function for example, as PWM or ADC or digital input, how would that work? I found a nice table for the Edison at this link https://github.com/intel-iot-devkit/mraa/blob/master/docs/edison.md mraa/edison.md at master · intel-iot-devkit/mraa · GitHub , but I didn't find for the Galileo.
Currently there is no such document to figure out the IO MRAA mapping for the Intel Galileo Gen2 board. You can find all the information available of the pins in the link that xbolshe provided.
About how to use an specific pin for a specific function you can look the examples of the MRAA repository ( https://github.com/intel-iot-devkit/mraa/tree/master/examples) to get an idea of how could you use the PWM or ADC or Digital Input.
I hope this information helps you.