Home
last modified time | relevance | path

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

/lk-master/platform/stm32f0xx/
A Dspi.c38 uint16_t temp_reg; in spi_init() local
46 temp_reg = regs->CR2; in spi_init()
47 temp_reg &= ~(SPI_CR2_DS | SPI_CR2_FRXTH); in spi_init()
48 temp_reg |= data_size; in spi_init()
51 temp_reg |= SPI_CR2_FRXTH; in spi_init()
56 regs->CR2 = temp_reg; in spi_init()
58 temp_reg = regs->CR1; in spi_init()
59 temp_reg |= SPI_CR1_MSTR | SPI_CR1_SSI; in spi_init()
60 regs->CR1 = temp_reg; in spi_init()
/lk-master/external/platform/stm32f0xx/STM32F0xx_HAL_Driver/
A Dstm32f0xx_hal_rcc_ex.c123 uint32_t temp_reg = 0U; in HAL_RCCEx_PeriphCLKConfig() local
163 temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); in HAL_RCCEx_PeriphCLKConfig()
164 …if((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) in HAL_RCCEx_PeriphCLKConfig()
167 temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); in HAL_RCCEx_PeriphCLKConfig()
172 RCC->BDCR = temp_reg; in HAL_RCCEx_PeriphCLKConfig()
175 if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) in HAL_RCCEx_PeriphCLKConfig()

Completed in 9 milliseconds