Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 62) sorted by relevance

123

/bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/
A Dstm32l1xx_hal_opamp_ex.c260 delta = 16U; in HAL_OPAMPEx_SelfCalibrateAll()
281 final_step_check = delta; in HAL_OPAMPEx_SelfCalibrateAll()
284 delta >>= 1U; in HAL_OPAMPEx_SelfCalibrateAll()
317 *opamp3_trimmingvalue -= delta; in HAL_OPAMPEx_SelfCalibrateAll()
322 *opamp3_trimmingvalue += delta; in HAL_OPAMPEx_SelfCalibrateAll()
592 delta = 16U; in HAL_OPAMPEx_SelfCalibrateAll()
611 final_step_check = delta; in HAL_OPAMPEx_SelfCalibrateAll()
614 delta >>= 1U; in HAL_OPAMPEx_SelfCalibrateAll()
625 *opamp1_trimmingvalue -= delta; in HAL_OPAMPEx_SelfCalibrateAll()
630 *opamp1_trimmingvalue += delta; in HAL_OPAMPEx_SelfCalibrateAll()
[all …]
A Dstm32l1xx_hal_opamp.c740 …uint8_t delta; /* For calibration loop algorithm: Variable f… in HAL_OPAMP_SelfCalibrate() local
839 delta = 16U; in HAL_OPAMP_SelfCalibrate()
841 while ((delta != 0U) || (final_step_check == 1U)) in HAL_OPAMP_SelfCalibrate()
854 final_step_check = delta; in HAL_OPAMP_SelfCalibrate()
857 delta >>= 1; in HAL_OPAMP_SelfCalibrate()
866 *opamp_trimmingvalue -= delta; in HAL_OPAMP_SelfCalibrate()
871 *opamp_trimmingvalue += delta; in HAL_OPAMP_SelfCalibrate()
/bsp/hpmicro/libraries/hpm_sdk/drivers/src/
A Dhpm_smix_drv.c219 uint32_t delta = SMIX_DST_CH_FADEIN_DELTA_MASK * 1000 / target_sample_rate / ms; in smix_mixer_config_dst_fadein_delta() local
221 if (delta == 0) { in smix_mixer_config_dst_fadein_delta()
224 ptr->DST_CH[ch].FADEIN = SMIX_DST_CH_FADEIN_DELTA_SET(delta); in smix_mixer_config_dst_fadein_delta()
230 uint32_t delta = (uint32_t)log2(target_sample_rate * ms / 1000); in smix_mixer_config_dst_fadeout_delta() local
233 if (delta > 0x3fff) { in smix_mixer_config_dst_fadeout_delta()
236 ptr->DST_CH[ch].FADEOUT = SMIX_DST_CH_FADEOUT_DELTA_SET(delta); in smix_mixer_config_dst_fadeout_delta()
244 if (delta == 0) { in smix_mixer_config_source_fadein_delta()
247 ptr->SOURCE_CH[ch].FADEIN = SMIX_SOURCE_CH_FADEIN_DELTA_SET(delta); in smix_mixer_config_source_fadein_delta()
253 uint32_t delta = (uint32_t)log2(target_sample_rate * ms / 1000); in smix_mixer_config_source_fadeout_delta() local
256 if (delta > 0x3fff) { in smix_mixer_config_source_fadeout_delta()
[all …]
A Dhpm_uart_drv.c61 uint16_t div, osc, delta; in uart_calculate_baudrate() local
74 delta = 0; in uart_calculate_baudrate()
81 delta = (uint16_t)(div * osc - tmp); in uart_calculate_baudrate()
83 delta = (uint16_t)(tmp - div * osc); in uart_calculate_baudrate()
85 if (delta && ((delta * 100 / tmp) > HPM_UART_BAUDRATE_TOLERANCE)) { in uart_calculate_baudrate()
/bsp/allwinner/libraries/sunxi-hal/hal/source/thermal/
A Dhal_thermal.c39 int delta, cdata, calib_offest; in hal_ths_calibrate() local
50 delta = (sensor_temp - ft_temp * 100) * 10 / TEMP_TO_REG; in hal_ths_calibrate()
51 cdata = CALIBRATE_DEFAULT - delta; in hal_ths_calibrate()
56 delta, delta, CALIBRATE_DEFAULT, CALIBRATE_DEFAULT, cdata, cdata); in hal_ths_calibrate()
/bsp/rockchip/common/rk_hal/lib/hal/src/
A Dhal_pwr.c52 uint32_t val, delta, mod; in PWR_SetVoltage_Linear() local
61 delta = volt - desc->minVolt; in PWR_SetVoltage_Linear()
62 mod = delta % desc->volt_list.stepVolt; in PWR_SetVoltage_Linear()
67 val = delta / desc->volt_list.stepVolt; in PWR_SetVoltage_Linear()
81 uint32_t val, delta, mod; in PWR_RoundVoltage_Linear() local
85 delta = volt - desc->minVolt; in PWR_RoundVoltage_Linear()
86 val = delta / desc->volt_list.stepVolt; in PWR_RoundVoltage_Linear()
88 mod = delta % desc->volt_list.stepVolt; in PWR_RoundVoltage_Linear()
/bsp/wch/risc-v/Libraries/ch32_drivers/
A Ddrv_common.c21 rt_uint64_t total_delay_ticks, us_ticks, start, now, delta, reload; in rt_hw_us_delay() local
34 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
35 } while(delta < total_delay_ticks); in rt_hw_us_delay()
/bsp/hc32l136/board/
A Dboard.c90 uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local
97 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
99 while(delta < us_tick * us); in rt_hw_us_delay()
/bsp/maxim/max32660-evsys/board/
A Dboard.c71 rt_uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local
78 delta = start >= now ? start - now : reload + start - now; in rt_hw_us_delay()
80 while (delta < us_tick * us); in rt_hw_us_delay()
/bsp/wch/arm/Libraries/ch32_drivers/
A Ddrv_common.c35 rt_uint32_t start, now, delta, reload, us_tick; in MSH_CMD_EXPORT() local
42 delta = start > now ? start - now : reload + start - now; in MSH_CMD_EXPORT()
43 } while (delta < us_tick * us); in MSH_CMD_EXPORT()
/bsp/Infineon/libraries/HAL_Drivers/
A Ddrv_common.c74 rt_uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local
82 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
84 while(delta < us_tick * us); in rt_hw_us_delay()
/bsp/fm33lc026/libraries/HAL_Drivers/
A Ddrv_common.c78 rt_uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local
85 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
87 while (delta < us_tick * us); in rt_hw_us_delay()
/bsp/hc32/libraries/hc32_drivers/
A Ddrv_common.c112 uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local
120 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
122 while (delta < us_tick * us); in rt_hw_us_delay()
/bsp/essemi/es32vf2264/drivers/
A Dboard.c131 unsigned int start, now, delta, reload, us_tick; in rt_hw_us_delay() local
138 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
140 while (delta < us_tick * us); in rt_hw_us_delay()
/bsp/hc32l196/board/
A Dboard.c116 uint32_t start, now, delta, reload, us_tick; in rt_hw_us_delay() local
124 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
126 while (delta < us_tick * us); in rt_hw_us_delay()
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/
A Dn32l43x_tsc.c212 TSC_ErrorTypeDef TSC_ConfigThreshold( uint32_t Channels, uint32_t base, uint32_t delta) in TSC_ConfigThreshold() argument
217 assert_param(IS_TSC_THRESHOLD_DELTA(delta)); in TSC_ConfigThreshold()
220 if ( (base>MAX_TSC_THRESHOLD_BASE)||(delta>MAX_TSC_THRESHOLD_DELTA)) in TSC_ConfigThreshold()
241 TSC->THRHD[i] = (base<<TSC_THRHDx_BASE_Pos)|(delta<<TSC_THRHDx_DELTA_Pos); in TSC_ConfigThreshold()
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/
A Dn32l40x_tsc.c212 TSC_ErrorTypeDef TSC_ConfigThreshold( uint32_t Channels, uint32_t base, uint32_t delta) in TSC_ConfigThreshold() argument
217 assert_param(IS_TSC_THRESHOLD_DELTA(delta)); in TSC_ConfigThreshold()
220 if ( (base>MAX_TSC_THRESHOLD_BASE)||(delta>MAX_TSC_THRESHOLD_DELTA)) in TSC_ConfigThreshold()
241 TSC->THRHD[i] = (base<<TSC_THRHDx_BASE_Pos)|(delta<<TSC_THRHDx_DELTA_Pos); in TSC_ConfigThreshold()
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/
A Dn32g43x_tsc.c212 TSC_ErrorTypeDef TSC_ConfigThreshold( uint32_t Channels, uint32_t base, uint32_t delta) in TSC_ConfigThreshold() argument
217 assert_param(IS_TSC_THRESHOLD_DELTA(delta)); in TSC_ConfigThreshold()
220 if ( (base>MAX_TSC_THRESHOLD_BASE)||(delta>MAX_TSC_THRESHOLD_DELTA)) in TSC_ConfigThreshold()
241 TSC->THRHD[i] = (base<<TSC_THRHDx_BASE_Pos)|(delta<<TSC_THRHDx_DELTA_Pos); in TSC_ConfigThreshold()
/bsp/apm32/libraries/APM32F0xx_Library/TSC_Device_Lib/src/
A Dtsc_filter.c101 TSC_tDelta_T TSC_Filt_DeltaFilter(TSC_tDelta_T delta) in TSC_Filt_DeltaFilter() argument
103 return (delta); in TSC_Filt_DeltaFilter()
/bsp/essemi/es32f0654/drivers/
A Dboard.c191 unsigned int start, now, delta, reload, us_tick; in rt_hw_us_delay() local
198 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
200 while (delta < us_tick * us); in rt_hw_us_delay()
/bsp/essemi/es32f365x/drivers/
A Dboard.c206 unsigned int start, now, delta, reload, us_tick; in rt_hw_us_delay() local
213 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
215 while (delta < us_tick * us); in rt_hw_us_delay()
/bsp/essemi/es32f369x/drivers/
A Dboard.c206 unsigned int start, now, delta, reload, us_tick; in rt_hw_us_delay() local
213 delta = start > now ? start - now : reload + start - now; in rt_hw_us_delay()
215 while (delta < us_tick * us); in rt_hw_us_delay()
/bsp/essemi/es32vf2264/libraries/ALD/ES32VF2264/Source/
A Dald_utils.c309 uint32_t start, now, delta, us_tick; in ald_delay_1us() local
315 delta = now - start; in ald_delay_1us()
317 while (delta < (us_tick * delay)); in ald_delay_1us()
/bsp/ESP32_C3/
A DSConstruct28 delta = before - len(image.segments)
29 print("Merged %d ELF section%s" % (delta, "s" if delta > 1 else ""))
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/
A Dn32g45x_tsc.c206 TSC_ErrorTypeDef TSC_ConfigThreshold( uint32_t Channels, uint32_t base, uint32_t delta) in TSC_ConfigThreshold() argument
211 assert_param(IS_TSC_THRESHOLD_DELTA(delta)); in TSC_ConfigThreshold()
214 if( (base>MAX_TSC_THRESHOLD_BASE)||(delta>MAX_TSC_THRESHOLD_DELTA)) in TSC_ConfigThreshold()
235 TSC->THRHD[i] = (base<<TSC_THRHD_BASE_SHIFT)|(delta<<TSC_THRHD_DELTA_SHIFT); in TSC_ConfigThreshold()

Completed in 49 milliseconds

123