diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-07-12 07:11:50 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-07-12 07:11:50 +0000 |
| commit | fa181f98d417b08d55032272720af7404013ed99 (patch) | |
| tree | 24e719ced5797c460cc3670ac24d226606b34cf0 /Projects/USBtoSerial/USBtoSerial.c | |
| parent | 8a06ec64960d6b168588a814fcbd82677467dce2 (diff) | |
Reduce prescaler of the flush timer in the USBtoSerial demo, so that buffer overruns will not occur regardless of hardware and baud rate settings.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1373 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects/USBtoSerial/USBtoSerial.c')
| -rw-r--r-- | Projects/USBtoSerial/USBtoSerial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Projects/USBtoSerial/USBtoSerial.c b/Projects/USBtoSerial/USBtoSerial.c index 91898688..145047cb 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. */ |
