Skip to content

Commit

Permalink
Add clock definitions for MAX78000 SoC
Browse files Browse the repository at this point in the history
This commit adds i2c related clock definitions
for MAX78000 SoC

Signed-off-by: Yasin Ustuner <[email protected]>
  • Loading branch information
yasinustunerg authored and yasin-ADI committed Jan 13, 2025
1 parent f0ae38e commit cd98e31
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Libraries/PeriphDrivers/Include/MAX78000/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Analog Devices, Inc.),
* Copyright (C) 2023-2024 Analog Devices, Inc.
* Copyright (C) 2023-2025 Analog Devices, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit cd98e31

Please sign in to comment.