Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Copy the path to the openocd
bin
folder.”
A block of code is set as follows:
// 22: Set PA5(LED_PIN) high GPIOA_OD_R |= LED_PIN;
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
// 1: Define base address for peripherals #define PERIPH_BASE (0x40000000UL) // 2: Offset for AHB1 peripheral bus
Any command-line input or output is written as follows:
monitor flash write_image erase 4_makefile_project.elf
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Right-click on This PC, and then choose Properties.”
Tips or important notes
Appear like this.