Guojun Jiang
/
StewartPlatform
stewartplatform
Fork of PwmOut_HelloWorld by
Diff: src/usart.cpp
- Revision:
- 3:c5ea5b6a7460
- Parent:
- 2:50062ac8646d
diff -r 50062ac8646d -r c5ea5b6a7460 src/usart.cpp --- a/src/usart.cpp Sat May 07 12:27:09 2016 +0000 +++ b/src/usart.cpp Sat Aug 20 12:06:14 2016 +0000 @@ -1,6 +1,6 @@ #include "usart.h" -Serial usart(USBTX, USBRX); +Serial usart(PA_9, PA_10); char positionTemp[7]; char position[6]; @@ -97,7 +97,7 @@ void usart_init(int baud) { - usart.baud(baud); + usart.baud(baud); usart.attach(&usart_ISR); // attach serial interupt service function wait(1); //usart.printf("this is a testing code \n");