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
Link Copied
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
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
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
Hi,
There is a discussion of the ADC sampling rate in this thread
Sergio
For more complete information about compiler optimizations, see our Optimization Notice.