Coding guidelines for embedded applications

Could you point some well known coding guidelines used for embedded applications ? I will be using C/C++ on Linux for a real-time embedded application.

Reply to
Bogdan
Loading thread data ...

If you're writing a device driver that might end up in the kernel, use C and follow the kernel coding standards at

formatting link

For safety-critical work, buy the relevant standards from MISRA at

formatting link
either "Guidelines for the Use of the C Language in Critical Systems," October 2004 or "Guidelines for the Use of the C++ Language in Critical Systems," June 2008.

"Targeting Safety-Related Errors During Software Requirements Analysis" from

formatting link
is useful, particularly the safety checklist.

Also useful is Michael Barr's "Firmware Code of Ethics" at

formatting link

Reply to
Mike Lewis

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.