![]() |
RTEMS 7.0-rc1
|
Raspberry Pi specific I2C definitions. More...
#include <bsp/raspberrypi.h>#include <bsp/rpi-gpio.h>#include <bsp/utility.h>#include <dev/i2c/i2c.h>Go to the source code of this file.
Enumerations | |
| enum | raspberrypi_bsc_masters { raspberrypi_bscm0 , raspberrypi_bscm1 , raspberrypi_bscm3 , raspberrypi_bscm4 , raspberrypi_bscm5 , raspberrypi_bscm6 } |
| I2C controller instances on Raspberry Pi 4. More... | |
Functions | |
| rtems_status_code | rpi_i2c_init (raspberrypi_bsc_masters device, uint32_t bus_clock) |
| Initialize the I2C bus for a specified master. | |
Raspberry Pi specific I2C definitions.
I2C controller instances on Raspberry Pi 4.
| rtems_status_code rpi_i2c_init | ( | raspberrypi_bsc_masters | device, |
| uint32_t | bus_clock | ||
| ) |
Initialize the I2C bus for a specified master.
| device | The BSC master to initialize. |
| bus_clock | The desired bus clock frequency in Hz. |