On Thu, Nov 10, 2016 at 2:14 AM, Neil Jubinville
wrote:
> Calling the write function from the main loop results in the LED turning on
> however the function does not fire.
>
> static void turnOn(){
>write_r30(0x);
> }
>
>
> static void turnOn(){
>
Additionally, it's not clear which version of gcc the pru_gcc compiler is
based on. So, it's not readily obvious as to which C std we're using.
Anyway, in C technically you can not override a function as can be done in
many high level languages such as C++, C#, etc. There are ways to work
around
*#1 Your code as is won't compile. Period.*
william@beaglebone:~$ pru-gcc -o main main.c
main.c:10:13: error: redefinition of 'turnOn'
static void turnOn(){
^~
main.c:5:13: note: previous definition of 'turnOn' was here
static void turnOn(){
^~
*#2 If you use
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