Reason behind MISRA rule 111

Hi,

I am just curious to know what the reason behind MISRA rule 111.

The rule says - Bit fields shall only be defined to be one of type unsigned int or signed int

I have used UINT32 instead of unsigned int in my code but compiler has thrown a warning says - "field type should be int"

Could somebody please put light on this.

Thanks Vikas

--------------------------------------- Posted through

formatting link

Reply to
vikasvds
Loading thread data ...

In message , vikasvds writes

You are asking in the wrong place.

Try the forum at

formatting link

No one in this NG can.

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England     /\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply to
Chris H

Better yet, try reading the multitude of responses to your post on the

12th. Jeesh.
--

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

Do you need to implement control loops in software?
"Applied Control Theory for Embedded Systems" was written for you.
See details at http://www.wescottdesign.com/actfes/actfes.html
Reply to
Tim Wescott

I know... proved my point

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England     /\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply to
Chris H

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.