On 18/10/2013 18:14, Paul Tan wrote:
I'm having some weirdness that I don't quite understand. I'm trying to
just toggle a GPIO pin (GPIO30) on and off using C and just the file
subsystem. Everything seems to work if there is a delay between the
fseek and the fwrite. See this pastebin for the relevant code
http://pastebin.com/Ftvv0nvE. As it is, it works. If you uncomment the
code, instead of creating a square wave on the oscilloscope, it just
creates pulse spikes (i.e. short on times). Can someone explain what is
happening? I'm working off a stock BeagleBone Black, no updates (I
wanted to make sure the code worked on all versions, as people would be
getting their BBB and trying it directly).
Paul Tan.
http://exadler.blogspot.com
http://exadler.com
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google
Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
Hi Paul
If you don't object to using a library there is libsoc[1] which is made
for this exact purpose. If nothing else, you could see if the same
behavior is observed using it?
https://github.com/jackmitch/libsoc
Cheers,
Jack.
--
Jack Mitchell ([email protected])
Embedded Systems Engineer
http://www.embed.me.uk
--
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.