mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-07-24 07:50:45 -04:00
Various simplifications and serial control improvements
This commit is contained in:
parent
9266f851c9
commit
c6748c6e4a
12 changed files with 4014 additions and 3533 deletions
|
@ -465,8 +465,7 @@ static uint16_t uart_period(unsigned long bps)
|
|||
#ifdef _DEBUG
|
||||
long skew = bps - (long)(period + 1) * (CPU_FREQ / 16);
|
||||
/* 8N1 is reliable within 3% skew */
|
||||
if ((unsigned long)ABS(skew) > bps / (100 / 3))
|
||||
kprintf("Baudrate off by %ldbps\n", skew);
|
||||
//if ((unsigned long)ABS(skew) > bps / (100 / 3)) kprintf("Baudrate off by %ldbps\n", skew);
|
||||
#endif
|
||||
|
||||
//DB(kprintf("uart_period(bps=%lu): period=%u\n", bps, period);)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue