Home
last modified time | relevance | path

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

/platform/or1ksim/
A Duart.c17 uint shift; member
25 *(volatile unsigned char *)(uart[port].base + (reg << uart[port].shift)) = data; in write_uart_reg()
29 return *(volatile unsigned char *)(uart[port].base + (reg << uart[port].shift)); in read_uart_reg()
/platform/stm32f0xx/
A Dexti.c145 uint shift = 4 * (interrupt & 0x3); in stm32_setup_ext_interrupt() local
146 cfg &= SYSCFG_EXTICR1_EXTI0 << shift; in stm32_setup_ext_interrupt()
147 cfg |= port << shift; in stm32_setup_ext_interrupt()
A Dtimer_capture.c168 int shift = 8 * (chan & 1); in stm32_timer_capture_setup_chan() local
171 val &= 0xff << shift; in stm32_timer_capture_setup_chan()
172 val |= TIM_CCMR1_CC1S_0 << shift; in stm32_timer_capture_setup_chan()
184 shift = 4 * (chan & 3); in stm32_timer_capture_setup_chan()
186 val &= 0xf << shift; in stm32_timer_capture_setup_chan()
187 val |= config << shift; in stm32_timer_capture_setup_chan()

Completed in 5 milliseconds