O'Reilly logo

The Definitive Guide to ARM® Cortex®-M0 and Cortex-M0+ Processors, 2nd Edition by Joseph Yiu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required