CHAPTER 11

images

The C Preprocessor and Bitwise Operations

In Chapter 4, Table 4-3 presented a list of the C preprocessor directives supported by Arduino C. In this chapter, we want to extend that discussion as well as cover a few additional details that should prove useful to you. In this chapter, you will learn about:

  • The function of the C preprocessor
  • The parameterized macros
  • Bitwise operators
  • The Standard C header files

Preprocessor Directives

The ANSI C specification details the duties of the C preprocessor. It is the function of the C preprocessor to process the defined directives supported by the C compiler. Table 4-2 lists the preprocessor ...

Get Beginning C for Arduino: Learn C Programming for the Arduino and Compatible Microcontrollers now with O’Reilly online learning.

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