Chapter 2. C Language Programming
In this chapter, we will cover the following topics:
- Configuring the hardware abstraction layer
- Writing a C program to blink each LED in turn
- Writing a function
- Writing to the console window
- Writing to the GLCD
- Creating a game application – Stage 1
- Creating a game application – Stage 2
- Debugging your code using print statements
- Using the debugger
Introduction
This chapter will introduce you to writing programs in C, a high-level language developed in the 1970s and popular amongst embedded system developers. It is not the only high-level language that can be used to target embedded system applications, but it is the most widely used, because it produces executable code that is compact and very efficiently executed. Standards ...
Get ARM® Cortex® M4 Cookbook 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.