Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 20191

Re: Is it possible to call fastDigitalWrite from a C program running in Linux

$
0
0

I have been able to reproduce the functionality of fastDigitalWrite() in a C program cross-compiled for the Galileo and executed in Linux.

 

See the attached sample program.  Clearly, this is just a quick and dirty test, but it reproduces (and improves just a touch on) the IO rates discussed in Re: I/O speeds?

 

What I haven't really attempted (because I was hoping somebody else could provide the formulation) is including headers and linking with libraries in /arduino-ide-install-dir/hardware/arduino/x86.

 

Thus, I can reformulate my original question as:

 

Is there a formula (includes, #defines, library paths/names, etc.) for leveraging in cross-compiled C programs the existing libraries meant to be used with Arduino sketches ?


Viewing all articles
Browse latest Browse all 20191

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>