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)
381
381
382
382
// Enable the Fast Mode Plus capability
383
383
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 )
385
385
if (obj_s -> i2c == I2C_1 ) {
386
386
HAL_I2CEx_EnableFastModePlus (I2C_FASTMODEPLUS_I2C1 );
387
387
}
388
388
#endif
389
- #if defined(I2C2_BASE ) && defined( __HAL_SYSCFG_FASTMODEPLUS_ENABLE ) && defined (I2C_FASTMODEPLUS_I2C2 )
389
+ #if defined(I2C2_BASE ) && defined (I2C_FASTMODEPLUS_I2C2 )
390
390
if (obj_s -> i2c == I2C_2 ) {
391
391
HAL_I2CEx_EnableFastModePlus (I2C_FASTMODEPLUS_I2C2 );
392
392
}
393
393
#endif
394
- #if defined(I2C3_BASE ) && defined( __HAL_SYSCFG_FASTMODEPLUS_ENABLE ) && defined (I2C_FASTMODEPLUS_I2C3 )
394
+ #if defined(I2C3_BASE ) && defined (I2C_FASTMODEPLUS_I2C3 )
395
395
if (obj_s -> i2c == I2C_3 ) {
396
396
HAL_I2CEx_EnableFastModePlus (I2C_FASTMODEPLUS_I2C3 );
397
397
}
398
398
#endif
399
- #if defined(I2C4_BASE ) && defined( __HAL_SYSCFG_FASTMODEPLUS_ENABLE ) && defined (I2C_FASTMODEPLUS_I2C4 )
399
+ #if defined(I2C4_BASE ) && defined (I2C_FASTMODEPLUS_I2C4 )
400
400
if (obj_s -> i2c == I2C_4 ) {
401
401
HAL_I2CEx_EnableFastModePlus (I2C_FASTMODEPLUS_I2C4 );
402
402
}
You can’t perform that action at this time.
0 commit comments