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

ATMega2560 stdin3: configurable RX buffer size

parent 324e097e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6,10 +6,12 @@
#ifndef STANDARDINPUT3_H
#define STANDARDINPUT3_H

#include "config.h"

class StandardInput3 {
	private:
		StandardInput3(const StandardInput3 &copy);
		static unsigned char const bufsize = 64;
		static unsigned char const bufsize = CONFIG_arch_atmega2560_driver_stdin3_rxbuf;
		char buffer[bufsize];
		unsigned char write_pos, read_pos;

+5 −0
Original line number Diff line number Diff line
@@ -97,6 +97,11 @@ help
depends on arch_atmega2560_driver_stdout3
select meta_driver_stdin3

config arch_atmega2560_driver_stdin3_rxbuf
int "UART3 RX Buffer Size"
default 64
depends on arch_atmega2560_driver_stdin3

config arch_atmega2560_driver_timer
bool "Timer with Interrupts"
select meta_driver_timer