| /bsp/stm32/stm32mp157a-st-discovery/board/ports/audio/ |
| A D | drv_cs42l51.c | 83 rt_uint8_t temp = 0; in cs42l51_lowlevel_deinit() local 114 rt_uint8_t temp = 0; in cs42l51_lowlevel_init() local 151 rt_uint8_t temp = 0; in cs42l51_init() local 248 rt_uint8_t temp = 0; in cs42l51_deinit() local 280 uint8_t temp; in cs42l51_read_id() local 304 rt_uint8_t temp = 0; in cs42l51_play() local 397 rt_uint8_t temp = 0; in cs42l51_stop() local 448 rt_uint8_t temp = 0; in cs42l51_get_volume() local 453 temp = VOLUME_INVERT(temp); in cs42l51_get_volume() 455 return temp; in cs42l51_get_volume() [all …]
|
| /bsp/ck802/libraries/common/pwm/ |
| A D | ck_pwm.c | 116 uint32_t temp; in drv_pwm_config() local 123 temp &= 0xffff0000; in drv_pwm_config() 126 temp = addr->PWM0CMP; in drv_pwm_config() 142 temp &= 0x0000ffff; in drv_pwm_config() 145 temp = addr->PWM1CMP; in drv_pwm_config() 161 temp &= 0xffff0000; in drv_pwm_config() 164 temp = addr->PWM2CMP; in drv_pwm_config() 180 temp &= 0x0000ffff; in drv_pwm_config() 183 temp = addr->PWM3CMP; in drv_pwm_config() 199 temp &= 0xffff0000; in drv_pwm_config() [all …]
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/ |
| A D | ehci-hub.c | 628 u32 temp, status; in ehci_hub_status_data() local 673 temp = 0; in ehci_hub_status_data() 710 u16 temp; in ehci_hub_descriptor() local 717 temp = 1 + (ports / 8); in ehci_hub_descriptor() 722 memset(&desc->DeviceRemovable[temp], 0xff, temp); in ehci_hub_descriptor() 760 temp = wIndex & 0xff; in ehci_hub_control() 761 temp -= (temp > 0); in ehci_hub_control() 875 if (temp & PORT_CSC) in ehci_hub_control() 877 if (temp & PORT_PEC) in ehci_hub_control() 996 if (temp & PORT_PE) in ehci_hub_control() [all …]
|
| A D | ohci-hub.c | 22 label, num, temp, \ 103 unsigned temp; 217 temp &= OHCI_CTRL_HCFS; 252 temp = ohci->hc_control; 253 temp &= OHCI_CTRL_RWC; 255 ohci->hc_control = temp; 271 temp = 0; 293 if (temp) 541 u16 temp; 621 u32 temp = 0; [all …]
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/ |
| A D | stm32l1xx_hal_gpio.c | 174 uint32_t temp = 0x00; in HAL_GPIO_Init() local 237 temp = GPIOx->MODER; in HAL_GPIO_Init() 240 GPIOx->MODER = temp; in HAL_GPIO_Init() 255 temp = EXTI->IMR; in HAL_GPIO_Init() 261 EXTI->IMR = temp; in HAL_GPIO_Init() 263 temp = EXTI->EMR; in HAL_GPIO_Init() 269 EXTI->EMR = temp; in HAL_GPIO_Init() 272 temp = EXTI->RTSR; in HAL_GPIO_Init() 278 EXTI->RTSR = temp; in HAL_GPIO_Init() 280 temp = EXTI->FTSR; in HAL_GPIO_Init() [all …]
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/usb/udc/ |
| A D | udc_platform.h | 288 uint16_t temp; \ 290 temp &=~(data); \ 295 uint16_t temp; \ 297 temp |= (data); \ 302 uint16_t temp; \ 309 uint32_t temp; \ 316 uint32_t temp; \ 323 uint32_t temp; \ 330 uint8_t temp; \ 337 uint8_t temp; \ [all …]
|
| /bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/ |
| A D | n32l43x_dbg.c | 96 uint32_t temp = 0; in GetUCID() local 102 temp = *(__IO uint32_t*)(ucid_addr++); in GetUCID() 103 UCIDbuf[num++] = (temp & 0xFF); in GetUCID() 104 UCIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUCID() 119 uint32_t temp = 0; in GetUID() local 125 temp = *(__IO uint32_t*)(uid_addr++); in GetUID() 126 UIDbuf[num++] = (temp & 0xFF); in GetUID() 127 UIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUID() 142 uint32_t temp = 0; in GetDBGMCU_ID() local 147 temp = *(__IO uint32_t*)(dbgid_addr++); in GetDBGMCU_ID() [all …]
|
| /bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/ |
| A D | n32l40x_dbg.c | 96 uint32_t temp = 0; in GetUCID() local 102 temp = *(__IO uint32_t*)(ucid_addr++); in GetUCID() 103 UCIDbuf[num++] = (temp & 0xFF); in GetUCID() 104 UCIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUCID() 119 uint32_t temp = 0; in GetUID() local 125 temp = *(__IO uint32_t*)(uid_addr++); in GetUID() 126 UIDbuf[num++] = (temp & 0xFF); in GetUID() 127 UIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUID() 142 uint32_t temp = 0; in GetDBGMCU_ID() local 147 temp = *(__IO uint32_t*)(dbgid_addr++); in GetDBGMCU_ID() [all …]
|
| /bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/ |
| A D | n32g43x_dbg.c | 96 uint32_t temp = 0; in GetUCID() local 102 temp = *(__IO uint32_t*)(ucid_addr++); in GetUCID() 103 UCIDbuf[num++] = (temp & 0xFF); in GetUCID() 104 UCIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUCID() 119 uint32_t temp = 0; in GetUID() local 125 temp = *(__IO uint32_t*)(uid_addr++); in GetUID() 126 UIDbuf[num++] = (temp & 0xFF); in GetUID() 127 UIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUID() 142 uint32_t temp = 0; in GetDBGMCU_ID() local 147 temp = *(__IO uint32_t*)(dbgid_addr++); in GetDBGMCU_ID() [all …]
|
| /bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/src/ |
| A D | n32g4fr_dbg.c | 100 uint32_t temp = 0; in GetUCID() local 113 temp = *(__IO uint32_t*)(ucid_addr++); in GetUCID() 114 UCIDbuf[num++] = (temp & 0xFF); in GetUCID() 115 UCIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUCID() 130 uint32_t temp = 0; in GetUID() local 143 temp = *(__IO uint32_t*)(uid_addr++); in GetUID() 144 UIDbuf[num++] = (temp & 0xFF); in GetUID() 145 UIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUID() 146 UIDbuf[num++] = (temp & 0xFF0000) >> 16; in GetUID() 160 uint32_t temp = 0; in GetDBGMCU_ID() local [all …]
|
| /bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/ |
| A D | n32g45x_dbg.c | 100 uint32_t temp = 0; in GetUCID() local 113 temp = *(__IO uint32_t*)(ucid_addr++); in GetUCID() 114 UCIDbuf[num++] = (temp & 0xFF); in GetUCID() 115 UCIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUCID() 130 uint32_t temp = 0; in GetUID() local 143 temp = *(__IO uint32_t*)(uid_addr++); in GetUID() 144 UIDbuf[num++] = (temp & 0xFF); in GetUID() 145 UIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUID() 160 uint32_t temp = 0; in GetDBGMCU_ID() local 165 temp = *(__IO uint32_t*)(dbgid_addr++); in GetDBGMCU_ID() [all …]
|
| /bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/src/ |
| A D | n32wb452_dbg.c | 100 uint32_t temp = 0; in GetUCID() local 113 temp = *(__IO uint32_t*)(ucid_addr++); in GetUCID() 114 UCIDbuf[num++] = (temp & 0xFF); in GetUCID() 115 UCIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUCID() 130 uint32_t temp = 0; in GetUID() local 143 temp = *(__IO uint32_t*)(uid_addr++); in GetUID() 144 UIDbuf[num++] = (temp & 0xFF); in GetUID() 145 UIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUID() 160 uint32_t temp = 0; in GetDBGMCU_ID() local 165 temp = *(__IO uint32_t*)(dbgid_addr++); in GetDBGMCU_ID() [all …]
|
| /bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/ |
| A D | n32g45x_dbg.c | 100 uint32_t temp = 0; in GetUCID() local 113 temp = *(__IO uint32_t*)(ucid_addr++); in GetUCID() 114 UCIDbuf[num++] = (temp & 0xFF); in GetUCID() 115 UCIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUCID() 130 uint32_t temp = 0; in GetUID() local 143 temp = *(__IO uint32_t*)(uid_addr++); in GetUID() 144 UIDbuf[num++] = (temp & 0xFF); in GetUID() 145 UIDbuf[num++] = (temp & 0xFF00) >> 8; in GetUID() 160 uint32_t temp = 0; in GetDBGMCU_ID() local 165 temp = *(__IO uint32_t*)(dbgid_addr++); in GetDBGMCU_ID() [all …]
|
| /bsp/samd21/sam_d2x_asflib/sam0/drivers/pwm/ |
| A D | pwm.c | 227 uint32_t temp; in pwm_set_duty_cycle() local 232 temp = LPMCU_MISC_REGS0->PWM0_CTRL.reg; in pwm_set_duty_cycle() 235 LPMCU_MISC_REGS0->PWM0_CTRL.reg = temp; in pwm_set_duty_cycle() 240 temp = LPMCU_MISC_REGS0->PWM1_CTRL.reg; in pwm_set_duty_cycle() 243 LPMCU_MISC_REGS0->PWM1_CTRL.reg = temp; in pwm_set_duty_cycle() 248 temp = LPMCU_MISC_REGS0->PWM2_CTRL.reg; in pwm_set_duty_cycle() 277 uint32_t temp; in pwm_set_period() local 288 temp |= reg_value; in pwm_set_period() 295 temp |= reg_value; in pwm_set_period() 302 temp |= reg_value; in pwm_set_period() [all …]
|
| /bsp/samd21/sam_d2x_asflib/sam0/drivers/opamp/ |
| A D | opamp.c | 125 uint32_t temp = 0; in opamp0_set_config() local 128 temp |= OPAMP_OPAMPCTRL_RES1EN; in opamp0_set_config() 148 temp |= OPAMP_OPAMPCTRL_ANAOUT; in opamp0_set_config() 151 OPAMP->OPAMPCTRL[0].reg = temp | in opamp0_set_config() 161 uint32_t temp = 0; in opamp1_set_config() local 164 temp |= OPAMP_OPAMPCTRL_RES1EN; in opamp1_set_config() 184 temp |= OPAMP_OPAMPCTRL_ANAOUT; in opamp1_set_config() 187 OPAMP->OPAMPCTRL[1].reg = temp | in opamp1_set_config() 197 uint32_t temp = 0; in opamp2_set_config() local 200 temp |= OPAMP_OPAMPCTRL_RES1EN; in opamp2_set_config() [all …]
|
| /bsp/loongson/ls1bdev/libraries/ |
| A D | ls1b_public.c | 21 unsigned int temp, mask; in reg_set_one_bit() local 24 temp = *reg; in reg_set_one_bit() 25 temp |= mask; in reg_set_one_bit() 26 *reg = temp; in reg_set_one_bit() 42 temp = *reg; in reg_clr_one_bit() 43 temp &= ~mask; in reg_clr_one_bit() 44 *reg = temp; in reg_clr_one_bit() 59 unsigned int temp; in reg_get_bit() local 61 temp = *reg; in reg_get_bit() 62 temp = (temp >> bit) & 1; in reg_get_bit() [all …]
|
| /bsp/loongson/ls1cdev/libraries/ |
| A D | ls1c_public.c | 20 unsigned int temp, mask; in reg_set_one_bit() local 23 temp = *reg; in reg_set_one_bit() 24 temp |= mask; in reg_set_one_bit() 25 *reg = temp; in reg_set_one_bit() 41 temp = *reg; in reg_clr_one_bit() 42 temp &= ~mask; in reg_clr_one_bit() 43 *reg = temp; in reg_clr_one_bit() 58 unsigned int temp; in reg_get_bit() local 60 temp = *reg; in reg_get_bit() 61 temp = (temp >> bit) & 1; in reg_get_bit() [all …]
|
| /bsp/apm32/libraries/APM32E10x_Library/APM32E10x_StdPeriphDriver/src/ |
| A D | apm32e10x_usart.c | 95 temp = uart->CTRL1; in USART_Config() 96 temp &= 0xE9F3; in USART_Config() 100 uart->CTRL1 = temp; in USART_Config() 102 temp = uart->CTRL2; in USART_Config() 103 temp &= 0xCFFF; in USART_Config() 105 uart->CTRL2 = temp; in USART_Config() 107 temp = uart->CTRL3; in USART_Config() 108 temp &= 0xFCFF; in USART_Config() 126 uart->BR = temp; in USART_Config() 644 uint32_t temp; in USART_EnableInterrupt() local [all …]
|
| /bsp/apm32/libraries/APM32F10x_Library/APM32F10x_StdPeriphDriver/src/ |
| A D | apm32f10x_usart.c | 95 temp = uart->CTRL1; in USART_Config() 96 temp &= 0xE9F3; in USART_Config() 100 uart->CTRL1 = temp; in USART_Config() 102 temp = uart->CTRL2; in USART_Config() 103 temp &= 0xCFFF; in USART_Config() 105 uart->CTRL2 = temp; in USART_Config() 107 temp = uart->CTRL3; in USART_Config() 108 temp &= 0xFCFF; in USART_Config() 126 uart->BR = temp; in USART_Config() 643 uint32_t temp; in USART_EnableInterrupt() local [all …]
|
| /bsp/apm32/libraries/APM32S10x_Library/APM32S10x_StdPeriphDriver/src/ |
| A D | apm32s10x_usart.c | 85 temp = uart->CTRL1; in USART_Config() 86 temp &= 0xE9F3; in USART_Config() 90 uart->CTRL1 = temp; in USART_Config() 92 temp = uart->CTRL2; in USART_Config() 93 temp &= 0xCFFF; in USART_Config() 95 uart->CTRL2 = temp; in USART_Config() 97 temp = uart->CTRL3; in USART_Config() 98 temp &= 0xFCFF; in USART_Config() 116 uart->BR = temp; in USART_Config() 634 uint32_t temp; in USART_EnableInterrupt() local [all …]
|
| /bsp/ck802/libraries/common/dmac/ |
| A D | ck_dmac.c | 49 temp &= 0xff000fff; in ck_dma_set_channel() 50 temp |= (size << 12); in ck_dma_set_channel() 53 addr->CHCTRLA = temp; in ck_dma_set_channel() 61 temp &= 0xffffff7f; in ck_dma_set_transfertype() 70 temp |= (1 << 7); in ck_dma_set_transfertype() 73 addr->CHCTRLB = temp; in ck_dma_set_transfertype() 86 temp &= 0xffffff0f; in ck_dma_set_addrinc() 102 temp &= 0xfffffff0; in ck_dma_set_transferwidth() 113 temp &= 0xfffff0ff; in ck_dma_set_burstlength() 129 temp &= 0xfffffeff; in ck_dma_set_handshaking() [all …]
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/pwm/ |
| A D | hal_pwm.c | 367 unsigned int temp; in hal_pwm_control() local 427 temp = SET_BITS(reg_bypass_shift, 1, temp, 1); /* bypass set */ in hal_pwm_control() 431 temp = SET_BITS(reg_clk_src_shift, reg_clk_src_width, temp, 1);/*clock source*/ in hal_pwm_control() 443 temp = SET_BITS(reg_clk_src_shift, reg_clk_src_width, temp, 1); in hal_pwm_control() 453 temp = SET_BITS(reg_clk_src_shift, reg_clk_src_width, temp, 0); in hal_pwm_control() 489 temp = hal_readl(PWM_BASE + reg_offset); in hal_pwm_control() 490 temp = SET_BITS(reg_div_m_shift, reg_div_m_width, temp, div_m); in hal_pwm_control() 491 hal_writel(temp, PWM_BASE + reg_offset); in hal_pwm_control() 504 temp = SET_BITS(reg_shift, reg_width, temp, prescale); in hal_pwm_control() 512 temp = SET_BITS(reg_shift, reg_width, temp, active_cycles); in hal_pwm_control() [all …]
|
| /bsp/samd21/sam_d2x_asflib/sam0/drivers/bod/bod_sam_l/ |
| A D | bod.c | 66 uint32_t temp = 0; in bod33_set_config() local 74 temp |= (uint32_t)conf->prescaler | (uint32_t)conf->action | (uint32_t)conf->monitor | in bod33_set_config() 78 temp |= SUPC_BOD33_HYST; in bod33_set_config() 82 temp |= SUPC_BOD33_RUNSTDBY; in bod33_set_config() 86 temp |= SUPC_BOD33_RUNBKUP; in bod33_set_config() 94 SUPC_BOD33_BKUPLEVEL(conf->backuplevel) | temp; in bod33_set_config() 117 uint32_t temp = 0; in bod12_set_config() local 125 temp |= (uint32_t)conf->prescaler | (uint32_t)conf->action | in bod12_set_config() 129 temp |= SUPC_BOD12_HYST; in bod12_set_config() 133 temp |= SUPC_BOD12_RUNSTDBY; in bod12_set_config() [all …]
|
| /bsp/rv32m1_vega/rv32m1_sdk_riscv/devices/RV32M1/drivers/ |
| A D | fsl_mmdvsq.c | 17 uint32_t temp = 0; in MMDVSQ_GetDivideRemainder() local 19 temp = base->CSR; in MMDVSQ_GetDivideRemainder() 20 temp &= ~(MMDVSQ_CSR_USGN_MASK | MMDVSQ_CSR_REM_MASK); in MMDVSQ_GetDivideRemainder() 22 temp |= MMDVSQ_CSR_USGN(isUnsigned) | MMDVSQ_CSR_REM(true); in MMDVSQ_GetDivideRemainder() 24 base->CSR = temp; in MMDVSQ_GetDivideRemainder() 38 uint32_t temp = 0; in MMDVSQ_GetDivideQuotient() local 40 temp = base->CSR; in MMDVSQ_GetDivideQuotient() 41 temp &= ~(MMDVSQ_CSR_USGN_MASK | MMDVSQ_CSR_REM_MASK); in MMDVSQ_GetDivideQuotient() 43 temp |= MMDVSQ_CSR_USGN(isUnsigned) | MMDVSQ_CSR_REM(false); in MMDVSQ_GetDivideQuotient() 45 base->CSR = temp; in MMDVSQ_GetDivideQuotient()
|
| /bsp/allwinner_tina/drivers/ |
| A D | board.c | 45 rt_uint32_t temp; in os_clock_init() local 49 temp = 0xB71B00 / RT_TICK_PER_SECOND; in os_clock_init() 51 *temp_addr = temp; in os_clock_init() 54 temp = (0x00 << 7) | (0x01 << 4) | (0x01 << 2) | (0x00 << 1); in os_clock_init() 57 *temp_addr |= temp; in os_clock_init() 60 temp = 0x01 << 0; in os_clock_init() 62 *temp_addr |= temp; in os_clock_init() 69 temp = 0x01 << 0; in os_clock_init() 71 *temp_addr |= temp; in os_clock_init()
|