DONGLE USB QUE USA LA USART 1 DEL LA FRDMKL25Z, LOS DATOS DE LA USART 1. PASAN DERECHO AL PC. LO USAMOS PARA PROBAR DISPOSITIVOS SERIE COMO MODEMS DE CELULARES O GPS RX ES PTE1 y TX ES PTE0

Dependencies:   mbed

main.cpp

Committer:
tony63
Date:
2017-03-17
Revision:
0:885cde04acc0

File content as of revision 0:885cde04acc0:

#include "mbed.h"
Serial pc(USBTX, USBRX); // tx, rx
Serial device(PTE0,PTE1);  // tx, rx
 
int main() {
    while(1) {
        if(pc.readable()) {
            device.putc(pc.getc());
        }
        if(device.readable()) {
            pc.putc(device.getc());
        }
    }
}