Hi All, so now that I am underway with the loader working I decided I would abstract out the single command that turns on the LED to a function. I have been hanging out in high level languages for far too long and it shows!--I am observing that my function is not being called??Calling the write function from the main loop results in the LED turning on however the function does not fire.I would have expected that a forward declaration would work fine and no additional header references would be required. Is there anything special needed to declare a simple function in a PRU-GCC compiled c file?static void turnOn(){
write_r30(0x1111);
}
static void turnOn(){
write_r30(0x0000);
}
int main(void){
turnOn(); // this does not work.
// write_r30(0x1111); This works.....
return 0;
}
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 beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/2b564886-2f54-4ffe-a147-130e863d91a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.