Chapter 6

Further Programming Techniques

Abstract

A number of further programming techniques are introduced in this chapter, which will allow the reader to develop more advanced mbed projects throughout the remainder of the book. In particular, the implementation of functions is discussed, and the advantages of using functions to enhance program flow control, readability, and efficient programming are evaluated. Modular programming techniques are also described, and the advantages and benefits of splitting a project into multiple C source and header files are considered. The program compilation process is also discussed to clarify the purpose of the methods used in modular programming. Bespoke libraries are discussed, and the process for importing ...

Get Fast and Effective Embedded Systems Design, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.