Home
last modified time | relevance | path

Searched refs:baud_high (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/i2c/
Di2c_sam0.c552 uint32_t baud_high; in i2c_sam0_set_apply_bitrate() local
611 baud_high = baud; in i2c_sam0_set_apply_bitrate()
612 baud_high /= 3U; in i2c_sam0_set_apply_bitrate()
613 baud_high = CLAMP(baud_high, 1U, 255U); in i2c_sam0_set_apply_bitrate()
614 baud_low = baud - baud_high; in i2c_sam0_set_apply_bitrate()
615 if (baud_low < 1U && baud_high > 1U) { in i2c_sam0_set_apply_bitrate()
616 --baud_high; in i2c_sam0_set_apply_bitrate()
625 dev->name, baud_high, baud_low); in i2c_sam0_set_apply_bitrate()
627 i2c->BAUD.reg = SERCOM_I2CM_BAUD_BAUD(baud_high) | in i2c_sam0_set_apply_bitrate()
642 baud_high = baud; in i2c_sam0_set_apply_bitrate()
[all …]