Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/platform/stm32/
Dspi.c69 volatile uint32_t CR1; member
197 regs->CR1 &= ~SPI_CR1_BR_MASK; in stmSpiEnable()
198 regs->CR1 |= SPI_CR1_BR(div); in stmSpiEnable()
202 regs->CR1 &= ~SPI_CR1_CPOL; in stmSpiEnable()
204 regs->CR1 |= SPI_CR1_CPOL; in stmSpiEnable()
207 regs->CR1 &= ~SPI_CR1_CPHA; in stmSpiEnable()
209 regs->CR1 |= SPI_CR1_CPHA; in stmSpiEnable()
212 regs->CR1 &= ~SPI_CR1_DFF; in stmSpiEnable()
214 regs->CR1 |= SPI_CR1_DFF; in stmSpiEnable()
217 regs->CR1 &= ~SPI_CR1_LSBFIRST; in stmSpiEnable()
[all …]
Dusart.c30 volatile uint16_t CR1; member
114 block->CR1 = (block->CR1 &~ 0x1600) | wordLengthVals[data_bits] | parityVals[parity] | 0x800C; in usartOpen()
129 block->CR1 |= 0x2000; in usartOpen()
137 block->CR1 &=~ 0x2000; in usartClose()
Dplatform.c57 volatile uint16_t CR1; member
287 TIM2->CR1 = (TIM2->CR1 &~ 0x03E1) | 0x0010; //count down mode with no clock division, disabled in platInitialize()
342 tim->CR1 &=~ 1; in TIM2_IRQHandler()
392 tim->CR1 &=~ 1; in platSetTimerAlarm()
401 tim->CR1 |= 1; in platSetTimerAlarm()
476 tim->CR1 &=~ 1; in sleepClockTmrWake()
Di2c.c110 volatile uint32_t CR1; member
254 pdev->cfg->regs->CR1 |= I2C_CR1_ACK; in stmI2cAckEnable()
259 pdev->cfg->regs->CR1 &= ~I2C_CR1_ACK; in stmI2cAckDisable()
276 while (regs->CR1 & (I2C_CR1_STOP | I2C_CR1_START)) in stmI2cStopEnable()
278 regs->CR1 |= I2C_CR1_STOP; in stmI2cStopEnable()
285 while (regs->CR1 & (I2C_CR1_STOP | I2C_CR1_START)) in stmI2cStartEnable()
287 regs->CR1 |= I2C_CR1_START; in stmI2cStartEnable()
304 pdev->cfg->regs->CR1 |= I2C_CR1_PE; in stmI2cEnable()
309 pdev->cfg->regs->CR1 &= ~I2C_CR1_PE; in stmI2cDisable()
Dbl.c20 volatile uint32_t CR1; member
461 SPI->CR1 = 0x00000040; //spi is on, configured same as bootloader would in blConfigIo()