This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to declare a 12bit variable at KEILC

Dear all: Would somebody can tell me how to declare a 12bits
variable in KeilC ? Now I only know use struct to do this. just like

struct OneHalf
{ unsigned int a: 12;
};

but I remember that some easy way exist. So anyone can tell me? Many thanks.

0