From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 07:22:59 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5B931065698 for ; Fri, 27 Aug 2010 07:22:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 6D4498FC24 for ; Fri, 27 Aug 2010 07:22:59 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=skgvEfutgnGSr0/z2w9BnbiJ4B+NZJZqOB5vgMWy4GQ= c=1 sm=1 a=aoo70D9LGfsA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=WhfvXyeiZWEuNZ-oznUA:9 a=NT95jmDdqolcbpjabGyef_aQD9QA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11355560; Fri, 27 Aug 2010 09:22:53 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 27 Aug 2010 09:18:58 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C776684.6000707@gmail.com> In-Reply-To: <4C776684.6000707@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008270918.58584.hselasky@c2i.net> Cc: Subject: Re: imon vfd driver complexity question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 07:23:00 -0000 On Friday 27 August 2010 09:17:24 Jim Bryant wrote: > unsigned char Try to use the: uint8_t uint16_t uint32_t int8_t int16_t int32_t types when describing data types. Also think about endianness and that 32-bit reads/writes must be 32-bit aligned. Else use UGETDW() and similar functions. --HPS