Hi all,
I am trying to run a program for Teensy 3.0 in a non arduino environment using only the Make file provided. I have made the necessary changes to the make file to compile properly in my Linux machine. I have tested it with an led blink program and the program runs just fine.
Now , I tried running a simple serial print program which should just print "Hello world" on the serial terminal.
I have also observed that serial1.c is taking care of the serial communication. Since I am writing a "C" code , the "serial_begin" function has to be modified since it does not take the baud rate directly , so i made this small change:
I was wondering if these changes would suffice and make the serial print work.
If you are wondering why I am not using arduino, please ask, I will be glad to describe what I am trying to do.
Thanks
sanatan
I am trying to run a program for Teensy 3.0 in a non arduino environment using only the Make file provided. I have made the necessary changes to the make file to compile properly in my Linux machine. I have tested it with an led blink program and the program runs just fine.
Now , I tried running a simple serial print program which should just print "Hello world" on the serial terminal.
Code:
void loop(void)
{
serial_print("Hello world");
delay(1000);
}
I have also observed that serial1.c is taking care of the serial communication. Since I am writing a "C" code , the "serial_begin" function has to be modified since it does not take the baud rate directly , so i made this small change:
Code:
divisor =BAUD2DIV(divisor);
I was wondering if these changes would suffice and make the serial print work.
If you are wondering why I am not using arduino, please ask, I will be glad to describe what I am trying to do.
Thanks
sanatan
Last edited: