Thanks, I'll try to see if there is a difference with libsoc or not. However, I did manage to get it working with low level unix i/o (open, write) instead of the buffered stream i/o (fopen, fwrite). It works correctly, I didn't need a seek operation, and I was able to get pulse widths down to 10uS reliably. Interesting difference though: fwrite to "/sys/class/gpio/export" succeeds even if GPIO30 was already exported, but write to "/sys/class/gpio/export" fails if GPIO30 was already exported.
I did the fseek because it didn't work without the fseek, and I agree that it doesn't make sense to fseek a psuedo device. You might be right in that the fseek was just adding delays or doing an fflush of the buffers. (The other reason was that I found examples on the Internet using fseek)
When I converted over to unix io, I no longer needed the seeks.
I just wanted to get this working quickly and will probably convert over to using the PRU later.
Thanks for the input.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/SLaa4HiC99A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
Thanks for feedback. I didn't realize that linuxcnc was using the PRU.
I will look into that code.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/SLaa4HiC99A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.