42 #if defined(__AVR_ATmega1280__) || \
43 defined(__AVR_ATmega2560__) || \
50 default: Serial.begin(baud);
break;
60 #if defined(__AVR_ATmega1280__) || \
61 defined(__AVR_ATmega2560__) || \
68 default: Serial.end();
break;
78 #if defined(__AVR_ATmega1280__) || \
79 defined(__AVR_ATmega2560__) || \
86 default:
return Serial.read();
break;
95 #if defined(__AVR_ATmega1280__) || \
96 defined(__AVR_ATmega2560__) || \
103 default:
return Serial.write(c);
break;
106 return Serial.write(c);
112 #if defined(__AVR_ATmega1280__) || \
113 defined(__AVR_ATmega2560__) || \
120 default:
return Serial.write(str);
break;
123 return Serial.write(str);
129 #if defined(__AVR_ATmega1280__) || \
130 defined(__AVR_ATmega2560__) || \
137 default:
return Serial.write(buffer, size);
break;
140 return Serial.write(buffer, size);
146 #if defined(__AVR_ATmega1280__) || \
147 defined(__AVR_ATmega2560__) || \
154 default:
return Serial.available();
break;
157 return Serial.available();
163 #if defined(__AVR_ATmega1280__) || \
164 defined(__AVR_ATmega2560__) || \
171 default: Serial.flush();
break;
180 #if defined(__AVR_ATmega1280__) || \
181 defined(__AVR_ATmega2560__) || \
188 default:
return Serial.peek();
break;
191 return Serial.peek();