This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
newbie qn about eCos integral types
- From: "Steve Simpson" <s dot simpson at genesysdesign dot com dot au>
- To: ecos-discuss at sourceware dot org
- Date: Mon, 16 Oct 2006 09:29:08 +1000
- Subject: [ECOS] newbie qn about eCos integral types
I'm trying to understand the intended application of the two different styles of eCos integral types
Basically how / when should I use the cyg_(u)intXX series of definitions, and
how / when should I use the cyg_(u)countXX series of definitions.
eg. when should I use cyg_uint8 instead of cyg_ucount8 and vice-versa?
The notes surrounding the defintions in cyg_type.h say that the cyg_(u)intXX series are for use with "memory and strutures". Ok that makes sense when you look at the typedef, but..
The comments for the cyg_(u)countXX series are that they are for "using integers in registers for looping and the like"
The part regarding registers confuses me, since I would have thought that a fixed width integer (aka) the cyg_(u)intXX series are the most appropriate for accessing *fixed width* registers.
Can anyone add a little more ligth here?
Ciao,
Steve
--
----------------------------------------------------
Steve Simpson
Genesys Design Pty Ltd
Unit 5, 33 Ryde Road
Pymble NSW 2073
AUSTRALIA
ph: +61 2 9499 7677
fax: +61 2 9499 7877
email: s.simpson@genesysdesign.com.au
www: http://www.genesysdesign.com.au/
----------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss