Setting the RTE for the I2C Peripheral Bus

The LCD touchscreen, three-axis motion sensor (LIS302DL), audio-codec (CS42L52), 64k EEPROM (M24C64), camera, and other peripherals that are supported by the MCBSTM32F400 evaluation board are connected to the STM32C microcontroller by a synchronous serial bus called I2C. The bus standard adopted is called the Inter-Integrated Circuit (I2C) Interface, which was developed by Phillips in the 1980s. Before we can use any peripherals that are connected to the I2C bus, we must first configure the I2C interface. We'll illustrate this by a recipe called touchScreenDemo_c6v0. Later in this chapter, we'll show you how to configure other I2C peripherals.

How to do it…

To set RTE for an I2C Peripheral Bus perform ...

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.