Skip to content

Commit

Permalink
Update targets/arm/mikroe/sam/src/i2c/implementations/implementation_…
Browse files Browse the repository at this point in the history
…1/hal_ll_i2c_master.c

Co-authored-by: Strahinja Jacimovic <strahinja.jacimovic@mikroe.com>
  • Loading branch information
IvanRuzavin and StrahinjaJacimovic authored Dec 16, 2024
1 parent 6207c0b commit 3eb3147
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -794,14 +794,14 @@ static uint32_t hal_ll_i2c_get_speed( hal_ll_i2c_hw_specifics_map_t *map ) {
// High-Speed can be only used in slave mode, 400k is the max speed allowed for master.
switch ( map->speed ) {
case HAL_LL_I2C_MASTER_SPEED_STANDARD:
i2c_speed = HAL_LL_I2C_MASTER_SPEED_100K;
break;
i2c_speed = HAL_LL_I2C_MASTER_SPEED_100K;
break;
case HAL_LL_I2C_MASTER_SPEED_FULL:
i2c_speed = HAL_LL_I2C_MASTER_LOW_DIVIDER_SPEED_LIMIT;
break;
i2c_speed = HAL_LL_I2C_MASTER_LOW_DIVIDER_SPEED_LIMIT;
break;

default:
return HAL_LL_I2C_MASTER_ERROR;
return HAL_LL_I2C_MASTER_ERROR;
}

/* Formula for calculating baud value involves two unknowns. Fix one unknown and calculate the other.
Expand Down

0 comments on commit 3eb3147

Please sign in to comment.