Unverified Commit 54890242 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

ATMega2560: Increase UART RX buffers; double baud rate for ESP8266 compatibility

parent 9de91aff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
class StandardInput {
	private:
		StandardInput(const StandardInput &copy);
		static unsigned char const bufsize = 16;
		static unsigned char const bufsize = 32;
		char buffer[bufsize];
		unsigned char write_pos, read_pos;

+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
class StandardInput3 {
	private:
		StandardInput3(const StandardInput3 &copy);
		static unsigned char const bufsize = 16;
		static unsigned char const bufsize = 64;
		char buffer[bufsize];
		unsigned char write_pos, read_pos;

+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ ifdef CONFIG_arch_atmega2560_driver_uptime
endif

ifeq (${cpu_freq}, 16000000)
	uart_baud = 57600
	uart_baud = 115200
else ifeq (${cpu_freq}, 8000000)
	uart_baud = 38400
else ifeq (${cpu_freq}, 4000000)