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