yes

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"              
00002  
00003 #include "communication.h"
00004 #include "parameters.h"
00005 
00006 bool is_connected = false; ///< True if the connection with the master is available
00007 bool has_setup = false;
00008 
00009 Serial pc(USBTX, USBRX);
00010 
00011 Communication read_comm() {
00012   return (Communication) Serial.read();
00013 }
00014 
00015 int main() {
00016     if (!has_setup) {
00017         setup();   
00018     }  
00019 }
00020 
00021 int setup() {
00022     has_setup = !has_setup
00023         
00024 }