Skip to content

Commit de77500

Browse files
authored
Remove I2C clock frequency limitation definitions
Removed frequency limitation definitions for I2C clock sources because they are unused variables.
1 parent 021fd07 commit de77500

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/i2c/i2c_esp32.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ LOG_MODULE_REGISTER(i2c_esp32, CONFIG_I2C_LOG_LEVEL);
3535
#define I2C_CLR_BUS_HALF_PERIOD_US 5 /* Period of SCL clock to restore SDA signal */
3636
#define I2C_TRANSFER_TIMEOUT_MSEC 500 /* Transfer timeout period */
3737

38-
/* Freq limitation when using different clock sources */
39-
#define I2C_CLK_LIMIT_REF_TICK (1 * 1000 * 1000 / 20) /* REF_TICK, no more than REF_TICK/20*/
40-
#define I2C_CLK_LIMIT_APB (80 * 1000 * 1000 / 20) /* Limited by APB, no more than APB/20 */
41-
#define I2C_CLK_LIMIT_RTC (20 * 1000 * 1000 / 20) /* Limited by RTC, no more than RTC/20 */
42-
#define I2C_CLK_LIMIT_XTAL (40 * 1000 * 1000 / 20) /* Limited by RTC, no more than XTAL/20 */
43-
4438
#define I2C_CLOCK_INVALID (-1)
4539

4640
enum i2c_status_t {

0 commit comments

Comments
 (0)