aboutsummaryrefslogtreecommitdiffstats
path: root/app/i2c_hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/i2c_hw.c')
-rw-r--r--app/i2c_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/i2c_hw.c b/app/i2c_hw.c
index 9b77009..3efb862 100644
--- a/app/i2c_hw.c
+++ b/app/i2c_hw.c
@@ -89,7 +89,7 @@ i2c_hw_init (void)
gpio_set_mode (SDA_BANK, GPIO_MODE_OUTPUT_50_MHZ,
GPIO_CNF_OUTPUT_ALTFN_OPENDRAIN,
SDA_GPIO);
- i2c_set_clock_frequency (I2C, I2C_CR2_FREQ_36MHZ);
+ i2c_set_clock_frequency (I2C, 36);
i2c_set_standard_mode (I2C);
i2c_set_ccr (I2C, 0x200); /* t_high=t_high=CCR * Tpclk1 */
i2c_set_trise (I2C, 0x0b);