Community
cancel
Showing results for 
Search instead for 
Did you mean: 
CCaio
Novice
1,696 Views

MRAA pin mapping for Galileo Gen 2

Jump to solution

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.

0 Kudos
1 Solution
asss
Valued Contributor II
104 Views

Hi,

here you may find a table for Galileo Gen2:

BR,

xbolshe

View solution in original post

5 Replies
asss
Valued Contributor II
105 Views

Hi,

here you may find a table for Galileo Gen2:

BR,

xbolshe

View solution in original post

idata
Community Manager
104 Views

Hi caiocsgomes,

 

 

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.

 

 

Regards,

 

-Leonardo
idata
Community Manager
104 Views

Hi Caiocsgomes,

 

 

Was the information helpful? Did you map the GPIOs pins successfully?

 

 

Don't doubt to ask us if you have issues.

 

 

Regards,

 

-Leonardo
CCaio
Novice
104 Views

I'm working in the project, I'll let you guys know the results. Thank you so much for the help.

idata
Community Manager
104 Views

Hi Caiocsgomes,

 

 

Nice, we will be waiting for your results. Good luck.

 

 

Regards,

 

-Leonardo
Reply