Rafael Mena
/
ComunicacionDosNucleo
Tareita
Fork of UART0 by
main.cpp@0:9e15cfed60ea, 2014-02-12 (annotated)
- Committer:
- hoangnguyen578
- Date:
- Wed Feb 12 18:44:29 2014 +0000
- Revision:
- 0:9e15cfed60ea
- Child:
- 1:9f10be874ce0
[ST Nucleo F103RB] UART0 ( PA_9 ->Tx , PA_10->Rx) Transmit Example.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hoangnguyen578 | 0:9e15cfed60ea | 1 | #include "mbed.h" |
hoangnguyen578 | 0:9e15cfed60ea | 2 | |
hoangnguyen578 | 0:9e15cfed60ea | 3 | Serial device(PA_9, PA_10); // tx, rx |
hoangnguyen578 | 0:9e15cfed60ea | 4 | |
hoangnguyen578 | 0:9e15cfed60ea | 5 | int main() { |
hoangnguyen578 | 0:9e15cfed60ea | 6 | device.baud(19200); |
hoangnguyen578 | 0:9e15cfed60ea | 7 | device.printf("Hello World\n"); |
hoangnguyen578 | 0:9e15cfed60ea | 8 | } |