This chapter covers a range of advanced topics such as bit data handling, creation of startup code in C, stack overflow prevention, workaround to allow reentrant interrupt, semaphore implementation and memory ordering, and how memory barrier instructions are related to it and various cases that memory barrier should be used to enforce ordering of certain operations.
KeywordsMemory barrier use cases; Memory ordering; Reentrant interrupt handling; Semaphore implementations; Stack overflow prevention; Startup code in C
23.1. Bit Data Handling in C Programming
While this is not really an advanced topic for experienced embedded software developers, many beginners do not know that in C/C++ you can define bit fields to ...
Get The Definitive Guide to ARM® Cortex®-M0 and Cortex-M0+ Processors, 2nd Edition now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.