cancel
Showing results for 
Search instead for 
Did you mean: 

uint8_t definition

greg_t
Associate II
Posted on August 13, 2010 at 16:28

uint8_t definition

16 REPLIES 16
stforum2
Associate II
Posted on May 17, 2011 at 14:02

http://en.wikipedia.org/wiki/Typedef

greg_t
Associate II
Posted on May 17, 2011 at 14:02

I know how to use typedef

but this line from the stdint.h 

typedef __UINT8_T_TYPE__ uint8_t;

does not make sense to me

stforum2
Associate II
Posted on May 17, 2011 at 14:02

Ah yes, I remember that obscure definition.  I'll go back and take a look again.

stforum2
Associate II
Posted on May 17, 2011 at 14:02

Sorry I cannot find a reference to typedef __UINT8_T_TYPE__ uint8_t; any more.

It was a few weeks ago.

I vaguely remember that we could not find a definition of __UINT8_T_TYPE__ but I'm not sure.

I think __UINT8_T_TYPE__ might be compiler specific.

greg_t
Associate II
Posted on May 17, 2011 at 14:02

Where can I read about the compiler specifics ?

stforum2
Associate II
Posted on May 17, 2011 at 14:02

These are things that are specific to a particular compiler implementation.

So the documentation for your compiler is the main place that you should find them.

greg_t
Associate II
Posted on May 17, 2011 at 14:02

You are wrong this is not compiler specific ...

domen23
Associate II
Posted on May 17, 2011 at 14:02

Depends on your libc.

In codesourcery (newlib) there's:

typedef unsigned char uint8_t ;

In others you should be able to track it down and eventually come to unsigned char.

greg_t
Associate II
Posted on May 17, 2011 at 14:02

It looks like everybody knows that this declaration is there but nobody knows where to find it.