Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/i2c/
Di2c_numaker.c58 I2C_T *i2c_base; member
98 I2C_T *i2c_base = config->i2c_base; in m_numaker_i2c_master_xfer_msg_read_last_byte() local
131 I2C_SET_CONTROL_REG(i2c_base, I2C_CTL0_SI_Msk); in m_numaker_i2c_master_xfer_msg_read_last_byte()
134 I2C_SET_CONTROL_REG(i2c_base, I2C_CTL0_SI_Msk | I2C_CTL0_AA_Msk); in m_numaker_i2c_master_xfer_msg_read_last_byte()
138 I2C_SET_CONTROL_REG(i2c_base, I2C_CTL0_SI_Msk); in m_numaker_i2c_master_xfer_msg_read_last_byte()
150 I2C_T *i2c_base = config->i2c_base; in m_numaker_i2c_master_xfer_end() local
154 I2C_SET_CONTROL_REG(i2c_base, I2C_CTL0_STO_Msk | I2C_CTL0_SI_Msk); in m_numaker_i2c_master_xfer_end()
167 I2C_T *i2c_base = config->i2c_base; in m_numaker_i2c_master_xfer_msg_read_next_byte() local
180 I2C_SET_CONTROL_REG(i2c_base, I2C_CTL0_SI_Msk | I2C_CTL0_AA_Msk); in m_numaker_i2c_master_xfer_msg_read_next_byte()
189 I2C_T *i2c_base = config->i2c_base; in m_numaker_i2c_master_xfer_msg_end() local
[all …]
Di2c_nios2.c165 .i2c_base = (alt_u32 *)DT_INST_REG_ADDR(0),
/Zephyr-latest/drivers/pinctrl/
Dpinctrl_gecko.c21 I2C_TypeDef *i2c_base = (I2C_TypeDef *)reg; in pinctrl_configure_pins() local
246 i2c_base->ROUTEPEN |= I2C_ROUTEPEN_SDAPEN; in pinctrl_configure_pins()
247 i2c_base->ROUTELOC0 &= ~_I2C_ROUTELOC0_SDALOC_MASK; in pinctrl_configure_pins()
248 i2c_base->ROUTELOC0 |= (loc << _I2C_ROUTELOC0_SDALOC_SHIFT); in pinctrl_configure_pins()
250 i2c_base->ROUTE = I2C_ROUTE_SDAPEN | I2C_ROUTE_SCLPEN | (loc << 8); in pinctrl_configure_pins()
256 i2c_base->ROUTEPEN |= I2C_ROUTEPEN_SCLPEN; in pinctrl_configure_pins()
257 i2c_base->ROUTELOC0 &= ~_I2C_ROUTELOC0_SCLLOC_MASK; in pinctrl_configure_pins()
258 i2c_base->ROUTELOC0 |= (loc << _I2C_ROUTELOC0_SCLLOC_SHIFT); in pinctrl_configure_pins()
260 i2c_base->ROUTE = I2C_ROUTE_SDAPEN | I2C_ROUTE_SCLPEN | (loc << 8); in pinctrl_configure_pins()