Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/i2c/
Di2c_sam_twihs.c72 static int i2c_clk_set(Twihs *const twihs, uint32_t speed) in i2c_clk_set() argument
98 twihs->TWIHS_CWGR = TWIHS_CWGR_CLDIV(cl_div) | TWIHS_CWGR_CHDIV(cl_div) in i2c_clk_set()
107 Twihs *const twihs = dev_cfg->regs; in i2c_sam_twihs_configure() local
136 ret = i2c_clk_set(twihs, bitrate); in i2c_sam_twihs_configure()
142 twihs->TWIHS_CR = TWIHS_CR_SVDIS; in i2c_sam_twihs_configure()
145 twihs->TWIHS_CR = TWIHS_CR_MSEN; in i2c_sam_twihs_configure()
150 static void write_msg_start(Twihs *const twihs, struct twihs_msg *msg, in write_msg_start() argument
154 twihs->TWIHS_MMR = TWIHS_MMR_DADR(daddr); in write_msg_start()
157 twihs->TWIHS_THR = msg->buf[msg->idx++]; in write_msg_start()
160 twihs->TWIHS_IER = TWIHS_IER_TXRDY | TWIHS_IER_TXCOMP | TWIHS_IER_NACK; in write_msg_start()
[all …]
Di2c_sam_twihs_rtio.c69 static int i2c_clk_set(Twihs *const twihs, uint32_t speed) in i2c_clk_set() argument
95 twihs->TWIHS_CWGR = TWIHS_CWGR_CLDIV(cl_div) | TWIHS_CWGR_CHDIV(cl_div) in i2c_clk_set()
104 Twihs *const twihs = dev_cfg->regs; in i2c_sam_twihs_configure() local
133 ret = i2c_clk_set(twihs, bitrate); in i2c_sam_twihs_configure()
139 twihs->TWIHS_CR = TWIHS_CR_SVDIS; in i2c_sam_twihs_configure()
142 twihs->TWIHS_CR = TWIHS_CR_MSEN; in i2c_sam_twihs_configure()
147 static void write_msg_start(Twihs *const twihs, const uint8_t *buf, const uint32_t idx, in write_msg_start() argument
151 twihs->TWIHS_MMR = TWIHS_MMR_DADR(daddr); in write_msg_start()
154 twihs->TWIHS_THR = buf[idx]; in write_msg_start()
157 twihs->TWIHS_IER = TWIHS_IER_TXRDY | TWIHS_IER_TXCOMP | TWIHS_IER_NACK; in write_msg_start()
[all …]
DKconfig.sam_twihs1 # sam twihs I2C support
/Zephyr-Core-3.5.0/dts/arm/atmel/
Dsame70.dtsi87 compatible = "atmel,sam-i2c-twihs";
98 compatible = "atmel,sam-i2c-twihs";
109 compatible = "atmel,sam-i2c-twihs";
/Zephyr-Core-3.5.0/boards/arm/tdk_robokit1/doc/
Dindex.rst65 - :dtcompatible:`atmel,sam-i2c-twihs`