Re: Newbie looking to figure out how to do a port!

[email protected] (Peter Seebach) Mon, 20 Feb 2006 05:21:44 -0600
Newsgroups gmane.os.netbsd.devel.ports
Message-ID <[email protected]>
In message <[email protected]>, der Mouse wr
ites:
>> #define BASE_BAUD (((400*1000000)/((0x3C>>1)+1))/16)
>
>> What I don't get is...
>
>> Why would anyone write "/31" as "/((0x3C>>1)+1)"?
>
>Perhaps because it more closely mirrors the way some external document
>specifies something?  I've seen such things often enough.
>
>After all, why would anyone write 12903225 as (400*1000000)/31, either?

The board documentation says the UART clock is processor speed over 31.

But yeah, I was thinking there might be some document somewhere.

-s