cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

hi to all,

   

I am getting the error and unable to over come .can any suggest .

   

thanks

   

PRP

   

 

   

----------------------------------------------------------------------------------------------------------------------------------------------------------

   

0 Likes
Reply
1 Solution
Anonymous
Not applicable

you only need to typedef once.

   

I'll normally put it at the begining.

   

typedef uint8 BOOL;

   

 

   

from that on you just use BOOL anywhere such as

   

BOOL boolData = 1; 

View solution in original post

0 Likes
Reply
4 Replies
Anonymous
Not applicable

you only need to typedef once.

   

I'll normally put it at the begining.

   

typedef uint8 BOOL;

   

 

   

from that on you just use BOOL anywhere such as

   

BOOL boolData = 1; 

View solution in original post

0 Likes
Reply
Anonymous
Not applicable

should be 

   

BOOL boolData = TRUE;

Esteemed Contributor II

There is no equal sign (=) in a typedef.

   

The syntax follows a variable declaration

   

 

   

typedef KnownType Newtype;

   

see here: http://publications.gbdirect.co.uk/c_book/chapter8/typedef.html

   

 

   

Happy coding

   

Bob

Anonymous
Not applicable

its working

   

thanks

0 Likes
Reply