Lines Matching full:baud
539 uint32_t baud; in i2c_sam0_set_apply_bitrate() local
560 baud = (SOC_ATMEL_SAM0_GCLK0_FREQ_HZ / 100000U - 5U - 10U) / 2U; in i2c_sam0_set_apply_bitrate()
561 if (baud > 255U || baud < 1U) { in i2c_sam0_set_apply_bitrate()
566 dev->name, baud); in i2c_sam0_set_apply_bitrate()
568 i2c->BAUD.reg = SERCOM_I2CM_BAUD_BAUD(baud); in i2c_sam0_set_apply_bitrate()
577 baud = (SOC_ATMEL_SAM0_GCLK0_FREQ_HZ / 400000U - 5U - 10U) / 2U; in i2c_sam0_set_apply_bitrate()
578 if (baud > 255U || baud < 1U) { in i2c_sam0_set_apply_bitrate()
583 dev->name, baud); in i2c_sam0_set_apply_bitrate()
585 i2c->BAUD.reg = SERCOM_I2CM_BAUD_BAUD(baud); in i2c_sam0_set_apply_bitrate()
597 baud = (SOC_ATMEL_SAM0_GCLK0_FREQ_HZ / 1000000U - 5U - 10U); in i2c_sam0_set_apply_bitrate()
600 baud_high = baud; in i2c_sam0_set_apply_bitrate()
603 baud_low = baud - baud_high; in i2c_sam0_set_apply_bitrate()
616 i2c->BAUD.reg = SERCOM_I2CM_BAUD_BAUD(baud_high) | in i2c_sam0_set_apply_bitrate()
628 baud = (SOC_ATMEL_SAM0_GCLK0_FREQ_HZ / 3400000U) - 2U; in i2c_sam0_set_apply_bitrate()
631 baud_high = baud; in i2c_sam0_set_apply_bitrate()
634 baud_low = baud - baud_high; in i2c_sam0_set_apply_bitrate()
652 i2c->BAUD.reg = SERCOM_I2CM_BAUD_HSBAUD(baud_high) | in i2c_sam0_set_apply_bitrate()