RealtimeCompLab2
Dependencies: mbed
Fork of PPP-Blinky by
main.cpp
00001 /** @file ppp-blinky.cpp */ 00002 #include "mbed.h" 00003 #include "ppp-blinky.h" 00004 00005 // PPP-Blinky - "The Most Basic Internet Thing" 00006 00007 int main() 00008 { 00009 // int i =1; 00010 initializePpp(); // initialize the serial port(s) and structures 00011 // l_on(); 00012 while(1) { 00013 waitForPcConnectString(); // wait for PC to send a connect message 00014 // l_off(); 00015 while( connectedPpp() ) { 00016 00017 waitForPppFrame(); // process PPP frames until we receive a disconnect command 00018 } 00019 00020 } 00021 }
Generated on Wed Jul 13 2022 22:24:08 by
1.7.2
