Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9881 Discussions

MRAA pin mapping for Galileo Gen 2

CCaio
Novice
1,799 Views

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
207 Views

Hi,

here you may find a table for Galileo Gen2:

BR,

xbolshe

View solution in original post

5 Replies
asss
Valued Contributor II
208 Views

Hi,

here you may find a table for Galileo Gen2:

BR,

xbolshe

idata
Community Manager
207 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
207 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
207 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
207 Views

Hi Caiocsgomes,

 

 

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

 

 

Regards,

 

-Leonardo
Reply