Terminal program providing access to radio AT command interface via the external serial port.
Dependencies: mbed-src
main.cpp
00001 #include "mbed.h" 00002 00003 int main() { 00004 // external serial port 00005 Serial ext(PA_2, PA_3); 00006 // internal serial port to radio 00007 Serial radio(RADIO_TX, RADIO_RX); 00008 00009 ext.baud(230400); 00010 radio.baud(115200); 00011 00012 while (true) { 00013 if (ext.readable()) 00014 radio.putc(ext.getc()); 00015 if (radio.readable()) 00016 ext.putc(radio.getc()); 00017 } 00018 }
Generated on Tue Jul 12 2022 20:52:34 by 1.7.2