Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- icis4
- Date:
- 2016-01-28
- Revision:
- 1:221b87b26f53
- Parent:
- 0:6c5376fa6d72
- Child:
- 2:2fc8495988a0
File content as of revision 1:221b87b26f53:
#include "mbed.h"
//------------------------------------
// Hyperterminal configuration
// 9600 bauds, 8-bit data, no parity
//------------------------------------
Serial pc(SERIAL_TX, SERIAL_RX);
Serial gps(PB_10, PC_5);
int main() {
uint8_t c;
pc.baud(4800);
gps.baud(4800);
pc.printf("*** GPS ***\n");
while(1) {
if (gps.readable()){
c = gps.getc();
pc.putc(c);
}
}
}
