Permalink
Browse files

baudrate logic for arduino boards

  • Loading branch information...
1 parent a65c351 commit 6d8d2660d510eefa5a31569c02fc4cd1a003148e @thseiler committed Sep 19, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 avr/2boots/board-arduino.h
View
7 avr/2boots/board-arduino.h
@@ -34,9 +34,12 @@
* 57600 if the target was a atmega328p or atmega1280
*/
#if defined(__AVR_ATmega328P__) || defined(__AVR_ATmega1280)
-#define BAUD_RATE 57600
+ #define BAUD_RATE 57600
+ #if F_CPU <= 8000000L
+ #define DOUBLE_SPEED
+ #endif
#else
-#define BAUD_RATE 19200
+ #define BAUD_RATE 19200
#endif

0 comments on commit 6d8d266

Please sign in to comment.