21 lines
415 B
C
21 lines
415 B
C
#ifndef I2C_H
|
|
#define I2C_H
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/semphr.h"
|
|
|
|
/// The mutex for accessing `I2C_NUM_0`.
|
|
extern SemaphoreHandle_t i2c0_mutex;
|
|
|
|
/// @brief Initializes `I2C_NUM_0`.
|
|
///
|
|
/// This is hooked up the to:
|
|
/// - The bottom half
|
|
/// - The char lcd
|
|
/// - The power board
|
|
/// - The MPU6050
|
|
/// - The PERH port
|
|
/// - The Capacitive Touch Panel
|
|
void init_i2c();
|
|
|
|
#endif /* I2C_H */ |