Lines Matching full:baud
550 uint32_t baud; in i2c_sam0_set_apply_bitrate() local
571 baud = (SOC_ATMEL_SAM0_GCLK0_FREQ_HZ / 100000U - 5U - 10U) / 2U; in i2c_sam0_set_apply_bitrate()
572 if (baud > 255U || baud < 1U) { in i2c_sam0_set_apply_bitrate()
577 dev->name, baud); in i2c_sam0_set_apply_bitrate()
579 i2c->BAUD.reg = SERCOM_I2CM_BAUD_BAUD(baud); in i2c_sam0_set_apply_bitrate()
588 baud = (SOC_ATMEL_SAM0_GCLK0_FREQ_HZ / 400000U - 5U - 10U) / 2U; in i2c_sam0_set_apply_bitrate()
589 if (baud > 255U || baud < 1U) { in i2c_sam0_set_apply_bitrate()
594 dev->name, baud); in i2c_sam0_set_apply_bitrate()
596 i2c->BAUD.reg = SERCOM_I2CM_BAUD_BAUD(baud); in i2c_sam0_set_apply_bitrate()
608 baud = (SOC_ATMEL_SAM0_GCLK0_FREQ_HZ / 1000000U - 5U - 10U); in i2c_sam0_set_apply_bitrate()
611 baud_high = baud; in i2c_sam0_set_apply_bitrate()
614 baud_low = baud - baud_high; in i2c_sam0_set_apply_bitrate()
627 i2c->BAUD.reg = SERCOM_I2CM_BAUD_BAUD(baud_high) | in i2c_sam0_set_apply_bitrate()
639 baud = (SOC_ATMEL_SAM0_GCLK0_FREQ_HZ / 3400000U) - 2U; in i2c_sam0_set_apply_bitrate()
642 baud_high = baud; in i2c_sam0_set_apply_bitrate()
645 baud_low = baud - baud_high; in i2c_sam0_set_apply_bitrate()
663 i2c->BAUD.reg = SERCOM_I2CM_BAUD_HSBAUD(baud_high) | in i2c_sam0_set_apply_bitrate()