File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -381,22 +381,22 @@ void i2c_frequency(i2c_t *obj, int hz)
381381
382382 // Enable the Fast Mode Plus capability
383383 if (hz == 1000000 ) {
384- #if defined(I2C1_BASE ) && defined( __HAL_SYSCFG_FASTMODEPLUS_ENABLE ) && defined (I2C_FASTMODEPLUS_I2C1 )
384+ #if defined(I2C1_BASE ) && defined (I2C_FASTMODEPLUS_I2C1 )
385385 if (obj_s -> i2c == I2C_1 ) {
386386 HAL_I2CEx_EnableFastModePlus (I2C_FASTMODEPLUS_I2C1 );
387387 }
388388#endif
389- #if defined(I2C2_BASE ) && defined( __HAL_SYSCFG_FASTMODEPLUS_ENABLE ) && defined (I2C_FASTMODEPLUS_I2C2 )
389+ #if defined(I2C2_BASE ) && defined (I2C_FASTMODEPLUS_I2C2 )
390390 if (obj_s -> i2c == I2C_2 ) {
391391 HAL_I2CEx_EnableFastModePlus (I2C_FASTMODEPLUS_I2C2 );
392392 }
393393#endif
394- #if defined(I2C3_BASE ) && defined( __HAL_SYSCFG_FASTMODEPLUS_ENABLE ) && defined (I2C_FASTMODEPLUS_I2C3 )
394+ #if defined(I2C3_BASE ) && defined (I2C_FASTMODEPLUS_I2C3 )
395395 if (obj_s -> i2c == I2C_3 ) {
396396 HAL_I2CEx_EnableFastModePlus (I2C_FASTMODEPLUS_I2C3 );
397397 }
398398#endif
399- #if defined(I2C4_BASE ) && defined( __HAL_SYSCFG_FASTMODEPLUS_ENABLE ) && defined (I2C_FASTMODEPLUS_I2C4 )
399+ #if defined(I2C4_BASE ) && defined (I2C_FASTMODEPLUS_I2C4 )
400400 if (obj_s -> i2c == I2C_4 ) {
401401 HAL_I2CEx_EnableFastModePlus (I2C_FASTMODEPLUS_I2C4 );
402402 }
You can’t perform that action at this time.
0 commit comments