Sample of program breaking when a certain set of source files are in a folder, but is fine when it is in the root. In this case, it is tested with RF12B.cpp, RF12B.h and rfdefs
RFSerial.cpp
00001 00002 /* Constructor */ 00003 #include "RFSerial.h" 00004 00005 RFSerial::RFSerial(PinName _SDI, 00006 PinName _SDO, 00007 PinName _SCK, 00008 PinName _NCS, 00009 PinName _NIRQ) 00010 :RF12B(_SDI, _SDO, _SCK, _NCS, _NIRQ) { 00011 00012 } 00013 00014 // Stream implementation functions 00015 int RFSerial::_putc(int value) { 00016 RF12B::write((unsigned char) value); 00017 return value; 00018 } 00019 int RFSerial::_getc() { 00020 if(available()) { 00021 return RF12B::read(); 00022 } else { 00023 return EOF; 00024 } 00025 }
Generated on Fri Jul 29 2022 06:49:56 by 1.7.2