Home
last modified time | relevance | path

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

/bsp/wch/risc-v/Libraries/ch56x_drivers/
A Dch56x_spi.c93 union _spi_ctrl_mod ctrl_mod; in spi_configure() local
112 ctrl_mod.mst_sck_mod = MST_SCK_MOD_0; in spi_configure()
114 ctrl_mod.mst_sck_mod = MST_SCK_MOD_3; in spi_configure()
135 ctrl_mod.all_clear = 1; in spi_configure()
136 sxreg->CTRL_MOD.reg = ctrl_mod.reg; in spi_configure()
137 ctrl_mod.all_clear = 0; in spi_configure()
138 sxreg->CTRL_MOD.reg = ctrl_mod.reg; in spi_configure()
183 union _spi_ctrl_mod ctrl_mod; in spi_xfer() local
213 sxreg->CTRL_MOD.reg = ctrl_mod.reg; in spi_xfer()
214 ctrl_mod.all_clear = 0; in spi_xfer()
[all …]
A Dch56x_pwm.c46 uint8_t ctrl_mod, polar; in pwm_channel_enable() local
51 ctrl_mod = pxreg->CTRL_MOD.reg; in pwm_channel_enable()
52 pxreg->CTRL_MOD.reg = ctrl_mod | (RB_PWM0_OUT_EN << channel); in pwm_channel_enable()
57 ctrl_mod = pxreg->CTRL_MOD.reg; in pwm_channel_enable()
58 polar = ctrl_mod & (RB_PWM0_POLAR << channel); in pwm_channel_enable()
60 ctrl_mod &= ~(RB_PWM0_OUT_EN << channel); in pwm_channel_enable()
61 pxreg->CTRL_MOD.reg = ctrl_mod; in pwm_channel_enable()

Completed in 5 milliseconds