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
9873 Discussions

configure Edison from Eclipse c

AElwa
Beginner
1,738 Views

It is quite tedious to write all Linux commands from the console window to configure Edison pins, so is there any way to include them in my C program ?

Thank you and best regards,

Anas

1 Solution
Sergio_A_Intel
Employee
126 Views

Hi

You could use system calls in your C program to directly run Linux commands. Take a look at http://linux.die.net/man/3/system system(3): execute shell command - Linux man page for a guide to the system command.

Alternatively, you can use mraa http://iotdk.intel.com/docs/master/mraa/ mraa: Main Page . With mraa you don't need to set any muxing, mraa manages the mux configuration.

Sergio

View solution in original post

3 Replies
Sergio_A_Intel
Employee
127 Views

Hi

You could use system calls in your C program to directly run Linux commands. Take a look at http://linux.die.net/man/3/system system(3): execute shell command - Linux man page for a guide to the system command.

Alternatively, you can use mraa http://iotdk.intel.com/docs/master/mraa/ mraa: Main Page . With mraa you don't need to set any muxing, mraa manages the mux configuration.

Sergio

AElwa
Beginner
126 Views

wouldn't be faster or more in Real Time if I configure the ADC myself and as well configuring SPI -rather than using MRAA librabry- to have higher numbers of readings ?

I am basically using The Intel Edison board to achieve analog input reading at least 10000 readings per second , do you think that is possible ?

Regards,

Anas

Sergio_A_Intel
Employee
126 Views

Hi,

There is a discussion of the ADC sampling rate in this thread

Sergio

Reply