Chapter 23

Advanced Topics

Abstract

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.

Keywords

Memory 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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.