Messages in this thread | | | Subject | Re: Serial custom speed deprecated? | Date | Fri, 25 Aug 2006 12:40:07 +0100 | From | (Nick Craig-Wood) |
| |
Alan Cox <alan@lxorguk.ukuu.org.uk> wrote: > Ar Iau, 2006-08-24 am 20:51 +0200, ysgrifennodd Krzysztof Halasa: > > Not sure if we want int, uint, or long long for speed values :-) > > You want speed_t according to POSIX.
To get non-integral baud rates (of which there are a few but no longer in common use) you'd probably want to supply a two integers which you then divide.
This matches most hardware quite well, and for most cases you'd just supply the divisor as 1.
-- Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |