From: Studencki (e. P. <Paw...@er...> - 2000-08-24 07:47:17
|
> >Assuming he was using 38400 with a 25 MHz clock (my > assumptions, since > >he mentioned t=19 fixed the problems) my correction > generates the proper > >result, whereas the define in sourceforge CVS's sh-sci.h does not (it > >generates 20) It's slight, and RS-232C is pretty tolerant (+-2% is > >guaranteed safe, but usually up to 5-10% still works), but I believe > >sh-sci.h is incorrect. > > > > in my environment, both generates correct value 19 in this case. Hi, it's my fault :) I'm using kernel 2.3.99-test7 (you are talking about newest snapshot from CVS...) "PCLK" in file drivers/char/sh-sci.h is differently defined as in kernel 2.4.0-test5: #define PCLK(current_cpu_data.module_clock) So the problem is not with the formula but with value for PCLK. My kernel 2.4.0 doesn't work, so I can't say, it's corect for my platform (SH3) or not. I hope it will be working. regards Pawel |