From 531392b9308fad9bde728b96fcdee04e82c5e1d5 Mon Sep 17 00:00:00 2001 From: Yasin Ustuner Date: Mon, 23 Dec 2024 15:28:14 +0300 Subject: [PATCH] Add clock definitions for MAX78000 SoC This commit adds i2c related clock definitions for MAX78000 SoC Signed-off-by: Yasin Ustuner --- Libraries/PeriphDrivers/Include/MAX78000/i2c.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Libraries/PeriphDrivers/Include/MAX78000/i2c.h b/Libraries/PeriphDrivers/Include/MAX78000/i2c.h index 7ccb00b22f..5f878f9e7d 100644 --- a/Libraries/PeriphDrivers/Include/MAX78000/i2c.h +++ b/Libraries/PeriphDrivers/Include/MAX78000/i2c.h @@ -43,6 +43,12 @@ extern "C" { * @{ */ +/***** Definitions *****/ +#define MXC_I2C_STD_MODE 100000 +#define MXC_I2C_FAST_SPEED 400000 +#define MXC_I2C_FASTPLUS_SPEED 1000000 +#define MXC_I2C_HIGH_SPEED 3400000 + typedef struct _i2c_req_t mxc_i2c_req_t; /** * @brief The callback used by the MXC_I2C_ReadByteInteractive() function.