From 8de31cbb78f98eb4d3c5b7232e85337b15f294e5 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 12 Jul 2010 07:11:50 +0000 Subject: Reduce prescaler of the flush timer in the USBtoSerial demo, so that buffer overruns will not occur regardless of hardware and baud rate settings. --- Projects/USBtoSerial/USBtoSerial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Projects/USBtoSerial/USBtoSerial.c') diff --git a/Projects/USBtoSerial/USBtoSerial.c b/Projects/USBtoSerial/USBtoSerial.c index 9189868835..145047cbc4 100644 --- a/Projects/USBtoSerial/USBtoSerial.c +++ b/Projects/USBtoSerial/USBtoSerial.c @@ -124,8 +124,8 @@ void SetupHardware(void) LEDs_Init(); USB_Init(); - /* Configure the UART flush timer - run at Fcpu/1024 for maximum interval before overflow */ - TCCR0B = ((1 << CS02) | (1 << CS00)); + /* Start the flush timer so that overflows occur rapidly to push received bytes to the USB interface */ + TCCR0B = (1 << CS02); } /** Event handler for the library USB Connection event. */ -- cgit v1.2.3