Home
last modified time | relevance | path

Searched refs:temp1 (Results 1 – 23 of 23) sorted by relevance

/bsp/apm32/libraries/APM32E10x_Library/APM32E10x_StdPeriphDriver/src/
A Dapm32e10x_adc.c371 uint32_t temp1 = 0; in ADC_ConfigRegularChannel() local
377 temp1 &= ~temp2; in ADC_ConfigRegularChannel()
379 temp1 |= temp2; in ADC_ConfigRegularChannel()
388 temp1 |= temp2; in ADC_ConfigRegularChannel()
398 temp1 |= temp2; in ADC_ConfigRegularChannel()
407 temp1 |= temp2; in ADC_ConfigRegularChannel()
416 temp1 |= temp2; in ADC_ConfigRegularChannel()
687 uint32_t temp1 = 0; in ADC_ConfigInjectedChannel() local
696 temp1 |= temp2; in ADC_ConfigInjectedChannel()
711 temp1 &= ~temp2; in ADC_ConfigInjectedChannel()
[all …]
/bsp/apm32/libraries/APM32F10x_Library/APM32F10x_StdPeriphDriver/src/
A Dapm32f10x_adc.c372 uint32_t temp1 = 0; in ADC_ConfigRegularChannel() local
378 temp1 &= ~temp2; in ADC_ConfigRegularChannel()
380 temp1 |= temp2; in ADC_ConfigRegularChannel()
389 temp1 |= temp2; in ADC_ConfigRegularChannel()
399 temp1 |= temp2; in ADC_ConfigRegularChannel()
408 temp1 |= temp2; in ADC_ConfigRegularChannel()
417 temp1 |= temp2; in ADC_ConfigRegularChannel()
688 uint32_t temp1 = 0; in ADC_ConfigInjectedChannel() local
697 temp1 |= temp2; in ADC_ConfigInjectedChannel()
712 temp1 &= ~temp2; in ADC_ConfigInjectedChannel()
[all …]
/bsp/apm32/libraries/APM32S10x_Library/APM32S10x_StdPeriphDriver/src/
A Dapm32s10x_adc.c367 uint32_t temp1 = 0; in ADC_ConfigRegularChannel() local
375 temp1 |= temp2; in ADC_ConfigRegularChannel()
384 temp1 |= temp2; in ADC_ConfigRegularChannel()
394 temp1 |= temp2; in ADC_ConfigRegularChannel()
403 temp1 |= temp2; in ADC_ConfigRegularChannel()
412 temp1 |= temp2; in ADC_ConfigRegularChannel()
675 uint32_t temp1 = 0; in ADC_ConfigInjectedChannel() local
684 temp1 |= temp2; in ADC_ConfigInjectedChannel()
693 temp1 |= temp2; in ADC_ConfigInjectedChannel()
699 temp1 &= ~temp2; in ADC_ConfigInjectedChannel()
[all …]
/bsp/apm32/libraries/APM32F4xx_Library/APM32F4xx_StdPeriphDriver/src/
A Dapm32f4xx_adc.c350 uint32_t temp1 = 0; in ADC_ConfigRegularChannel() local
359 temp1 |= temp2; in ADC_ConfigRegularChannel()
368 temp1 |= temp2; in ADC_ConfigRegularChannel()
378 temp1 |= temp2; in ADC_ConfigRegularChannel()
387 temp1 |= temp2; in ADC_ConfigRegularChannel()
396 temp1 |= temp2; in ADC_ConfigRegularChannel()
660 uint32_t temp1 = 0; in ADC_ConfigInjectedChannel() local
669 temp1 |= temp2; in ADC_ConfigInjectedChannel()
678 temp1 |= temp2; in ADC_ConfigInjectedChannel()
684 temp1 &= ~temp2; in ADC_ConfigInjectedChannel()
[all …]
A Dapm32f4xx_dac.c69 uint32_t temp1 = 0, temp2 = 0; in DAC_Config() local
71 temp1 = DAC->CTRL; in DAC_Config()
73 temp1 &= ~(((uint32_t)0x00000FFE) << channel); in DAC_Config()
80 temp1 |= temp2 << channel; in DAC_Config()
82 DAC->CTRL = temp1; in DAC_Config()
/bsp/samd21/sam_d2x_asflib/sam0/drivers/sercom/
A Dsercom.c146 uint64_t temp1; in _sercom_get_async_baud_val() local
156 temp1 = ((sample_num * (uint64_t)baudrate) << SHIFT); in _sercom_get_async_baud_val()
157 ratio = long_division(temp1, peripheral_clock); in _sercom_get_async_baud_val()
161 temp1 = ((uint64_t)baudrate * sample_num); in _sercom_get_async_baud_val()
162 baud_int = long_division( peripheral_clock, temp1); in _sercom_get_async_baud_val()
166 temp1 = long_division( 8 * (uint64_t)peripheral_clock, temp1); in _sercom_get_async_baud_val()
167 baud_fp = temp1 - 8 * baud_int; in _sercom_get_async_baud_val()
/bsp/hc32/tests/
A Dtest_rtc.c79 rt_uint16_t temp1, temp2, temp3; in rtc_sample() local
129 temp1 = ((argv[2][0] - '0') * 10) + \ in rtc_sample()
135 if (RT_EOK != set_time(temp1, temp2, temp3)) in rtc_sample()
140 rt_kprintf("\nset RTC time as %2d:%2d:%2d\n", temp1, temp2, temp3); in rtc_sample()
144 temp1 = ((argv[2][0] - '0') * 1000) + \ in rtc_sample()
152 if (RT_EOK != set_date(temp1, temp2, temp3)) in rtc_sample()
157 rt_kprintf("\nset RTC date as %4d-%2d-%2d\n", temp1, temp2, temp3); in rtc_sample()
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_usbfs_driver/src/
A Dusb_mem.c48 uint32_t i, temp1, temp2; in USB_CopyUserToPMABuf() local
53 temp1 = (uint16_t)*pbUsrBuf; in USB_CopyUserToPMABuf()
55 temp2 = temp1 | (uint16_t)*pbUsrBuf << 8; in USB_CopyUserToPMABuf()
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_usbfs_driver/src/
A Dusb_mem.c48 uint32_t i, temp1, temp2; in USB_CopyUserToPMABuf() local
53 temp1 = (uint16_t)*pbUsrBuf; in USB_CopyUserToPMABuf()
55 temp2 = temp1 | (uint16_t)*pbUsrBuf << 8; in USB_CopyUserToPMABuf()
/bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_usbfs_driver/src/
A Dusb_mem.c48 uint32_t i, temp1, temp2; in USB_CopyUserToPMABuf() local
53 temp1 = (uint16_t)*pbUsrBuf; in USB_CopyUserToPMABuf()
55 temp2 = temp1 | (uint16_t)*pbUsrBuf << 8; in USB_CopyUserToPMABuf()
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_usbfs_driver/src/
A Dusb_mem.c48 uint32_t i, temp1, temp2; in USB_CopyUserToPMABuf() local
53 temp1 = (uint16_t)*pbUsrBuf; in USB_CopyUserToPMABuf()
55 temp2 = temp1 | (uint16_t)*pbUsrBuf << 8; in USB_CopyUserToPMABuf()
/bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_usbfs_driver/src/
A Dusb_mem.c48 uint32_t i, temp1, temp2; in USB_CopyUserToPMABuf() local
53 temp1 = (uint16_t)*pbUsrBuf; in USB_CopyUserToPMABuf()
55 temp2 = temp1 | (uint16_t)*pbUsrBuf << 8; in USB_CopyUserToPMABuf()
/bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_usbfs_driver/src/
A Dusb_mem.c48 uint32_t i, temp1, temp2; in USB_CopyUserToPMABuf() local
53 temp1 = (uint16_t)*pbUsrBuf; in USB_CopyUserToPMABuf()
55 temp2 = temp1 | (uint16_t)*pbUsrBuf << 8; in USB_CopyUserToPMABuf()
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_usbfs_driver/src/
A Dusb_mem.c48 uint32_t i, temp1, temp2; in USB_CopyUserToPMABuf() local
53 temp1 = (uint16_t)*pbUsrBuf; in USB_CopyUserToPMABuf()
55 temp2 = temp1 | (uint16_t)*pbUsrBuf << 8; in USB_CopyUserToPMABuf()
/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/
A Dehci-hub.c750 u32 temp, temp1, status; in ehci_hub_control() local
819 temp1 = ehci_readl(ehci, hostpc_reg); in ehci_hub_control()
820 ehci_writel(ehci, temp1 & ~HOSTPC_PHCD, in ehci_hub_control()
989 temp1 = ehci_readl(ehci, hostpc_reg); in ehci_hub_control()
1074 temp1 = ehci_readl(ehci, hostpc_reg); in ehci_hub_control()
1075 ehci_writel(ehci, temp1 | HOSTPC_PHCD, in ehci_hub_control()
1077 temp1 = ehci_readl(ehci, hostpc_reg); in ehci_hub_control()
1079 wIndex, (temp1 & HOSTPC_PHCD) ? in ehci_hub_control()
/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/manager/
A Dusb_hw_scan.c25 unsigned int temp1 = 0; in PIODataIn_debounce() local
36 hal_gpio_get_data(usb_gpio->gpio_set.gpio, (gpio_data_t *)&temp1); in PIODataIn_debounce()
37 if (temp1) { in PIODataIn_debounce()
53 *value = temp1; in PIODataIn_debounce()
55 …g("usb_gpio->valid = %x, cnt = %x, change= %d, temp1 = %x\n", usb_gpio->valid, cnt, change, temp1); in PIODataIn_debounce()
/bsp/apm32/libraries/APM32F0xx_Library/APM32F0xx_StdPeriphDriver/src/
A Dapm32f0xx_gpio.c361 uint32_t temp1 = 0x00; in GPIO_ConfigPinAF() local
371 temp1 = (uint8_t)afPin << ((uint32_t)(pinSource & 0x07) * 4); in GPIO_ConfigPinAF()
373 port->ALFH |= temp1; in GPIO_ConfigPinAF()
/bsp/hpmicro/libraries/hpm_sdk/drivers/src/
A Dhpm_i2c_drv.c35 int32_t temp1, temp2, temp3; in i2c_configure_timing() local
92 temp1 = (setup_time - 2 * tpclk) / tpclk / (HPM_I2C_DRV_DEFAULT_TPM + 1) - 2 - timing->t_sp; in i2c_configure_timing()
93 timing->t_sudat = MAX(temp1, 0); in i2c_configure_timing()
101 temp1 = (hold_time - 2 * tpclk) / tpclk / (HPM_I2C_DRV_DEFAULT_TPM + 1) - 2 - timing->t_sp; in i2c_configure_timing()
102 timing->t_hddat = MAX(temp1, 0); in i2c_configure_timing()
107 temp1 = (timing->t_high - 2 * tpclk) / tpclk / (HPM_I2C_DRV_DEFAULT_TPM + 1) - 2 - timing->t_sp; in i2c_configure_timing()
119 timing->t_sclhi = MAX(MAX(temp1, temp2), temp3); in i2c_configure_timing()
/bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/
A Dstm32l1xx_ll_usb.c783 uint32_t i, temp1, temp2; in USB_WritePMA() local
791 temp1 = *pBuf; in USB_WritePMA()
793 temp2 = temp1 | ((uint16_t)((uint16_t) *pBuf << 8)); in USB_WritePMA()
A Dstm32l1xx_hal_smartcard.c1781 uint32_t temp1= 0x00U, temp2 = 0x00U; in HAL_SMARTCARD_GetState() local
1782 temp1 = hsc->gState; in HAL_SMARTCARD_GetState()
1785 return (HAL_SMARTCARD_StateTypeDef)(temp1 | temp2); in HAL_SMARTCARD_GetState()
A Dstm32l1xx_hal_irda.c2020 uint32_t temp1 = 0x00U, temp2 = 0x00U; in HAL_IRDA_GetState() local
2021 temp1 = hirda->gState; in HAL_IRDA_GetState()
2024 return (HAL_IRDA_StateTypeDef)(temp1 | temp2); in HAL_IRDA_GetState()
A Dstm32l1xx_hal_tim.c4037 TIM_OC_InitTypeDef temp1; in HAL_TIM_OnePulse_ConfigChannel() local
4051 temp1.OCMode = sConfig->OCMode; in HAL_TIM_OnePulse_ConfigChannel()
4052 temp1.Pulse = sConfig->Pulse; in HAL_TIM_OnePulse_ConfigChannel()
4053 temp1.OCPolarity = sConfig->OCPolarity; in HAL_TIM_OnePulse_ConfigChannel()
4061 TIM_OC1_SetConfig(htim->Instance, &temp1); in HAL_TIM_OnePulse_ConfigChannel()
4068 TIM_OC2_SetConfig(htim->Instance, &temp1); in HAL_TIM_OnePulse_ConfigChannel()
A Dstm32l1xx_hal_uart.c2913 uint32_t temp1 = 0x00U, temp2 = 0x00U; in HAL_UART_GetState() local
2914 temp1 = huart->gState; in HAL_UART_GetState()
2917 return (HAL_UART_StateTypeDef)(temp1 | temp2); in HAL_UART_GetState()

Completed in 74 milliseconds