Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AElwa
Beginner
1,651 Views

configure Edison from Eclipse c

Jump to solution

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


Accepted Solutions
Sergio_A_Intel
Employee
39 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
40 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

AElwa
Beginner
39 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
39 Views

Hi,

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

Sergio