Home
last modified time | relevance | path

Searched refs:position (Results 1 – 25 of 81) sorted by relevance

1234

/bsp/tae32f5300/Libraries/TAE32F53xx_StdPeriph_Driver/src/
A Dtae32f53xx_ll_gpio.c76 uint32_t position = 0x00U; in LL_GPIO_Init() local
95 MODIFY_REG(GPIOx->PMUXR[position >> 3U], 0x0FU << ((position & 0x07U) * 4U), in LL_GPIO_Init()
108 MODIFY_REG(GPIOx->PMUXR[position >> 3U], 0x0FU << ((position & 0x07U) * 4U), in LL_GPIO_Init()
129 MODIFY_REG(GPIOx->PMUXR[position >> 3U], 0x0FU << ((position & 0x07U) * 4U), in LL_GPIO_Init()
160 position++; in LL_GPIO_Init()
175 uint32_t position = 0x00U; in LL_GPIO_DeInit() local
219 position++; in LL_GPIO_DeInit()
255 uint32_t position = 0x00U; in LL_GPIO_AF_Config() local
269 MODIFY_REG(GPIOx->PMUXR[position >> 3U], 0x0FU << ((position & 0x07U) * 4U), in LL_GPIO_AF_Config()
274 position++; in LL_GPIO_AF_Config()
[all …]
/bsp/Vango/v85xx/Libraries/VangoV85xx_standard_peripheral/Source/
A Dlib_lcd.c289 position = 0; in LCD_IOConfig()
296 *lcd_segio[position].GPIO &= ~lcd_segio[position].Pin; in LCD_IOConfig()
298 position++; in LCD_IOConfig()
359 *lcd_segio[position].GPIO |= lcd_segio[position].Pin; in LCD_IOConfig()
415 position = 0; in LCD_SetSEG()
422 *lcd_segio[position].GPIO |= lcd_segio[position].Pin; in LCD_SetSEG()
426 position++; in LCD_SetSEG()
429 position = 0; in LCD_SetSEG()
440 position++; in LCD_SetSEG()
443 position = 0; in LCD_SetSEG()
[all …]
A Dlib_pwm.c386 uint32_t position = 0; in PWM_OLineConfig() local
393 while ((OLine >> position) != 0UL) in PWM_OLineConfig()
395 if ((OLine >> position) & 1UL) in PWM_OLineConfig()
397 tmp &= ~(PWM_O_SEL_O_SEL0 << (position * 4)); in PWM_OLineConfig()
398 tmp |= (OutSelection << (position * 4)); in PWM_OLineConfig()
400 position++; in PWM_OLineConfig()
A Dlib_pmu.c270 uint32_t position = 0x00U; in PMU_WakeUpPinConfig() local
277 while ((IOAx >> position) != 0U) in PMU_WakeUpPinConfig()
280 iocurrent = IOAx & (0x01U << position); in PMU_WakeUpPinConfig()
289 tmp &= ~(3U << (2 * position)); in PMU_WakeUpPinConfig()
300 tmp |= 1 << (2 * position); in PMU_WakeUpPinConfig()
306 tmp |= 1 << (2 * position); in PMU_WakeUpPinConfig()
312 tmp |= 2 << (2 * position); in PMU_WakeUpPinConfig()
318 tmp |= 2 << (2 * position); in PMU_WakeUpPinConfig()
323 tmp |= 3 << (2 * position); in PMU_WakeUpPinConfig()
328 position++; in PMU_WakeUpPinConfig()
/bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/
A Dstm32l1xx_hal_gpio.c172 uint32_t position = 0x00; in HAL_GPIO_Init() local
182 while (((GPIO_Init->Pin) >> position) != 0) in HAL_GPIO_Init()
230 temp = GPIOx->AFR[position >> 3]; in HAL_GPIO_Init()
233 GPIOx->AFR[position >> 3] = temp; in HAL_GPIO_Init()
249 temp = SYSCFG->EXTICR[position >> 2]; in HAL_GPIO_Init()
290 position++; in HAL_GPIO_Init()
303 uint32_t position = 0x00; in HAL_GPIO_DeInit() local
312 while ((GPIO_Pin >> position) != 0) in HAL_GPIO_DeInit()
322 tmp = SYSCFG->EXTICR[position >> 2]; in HAL_GPIO_DeInit()
343 CLEAR_BIT(GPIOx->AFR[position >> 3], 0xFU << ((uint32_t)(position & 0x07U) * 4)) ; in HAL_GPIO_DeInit()
[all …]
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/
A Dn32l43x_gpio.c120 uint32_t position = 0x00U; in GPIO_DeInit() local
155 while ((GPIO_Pin >> position) != 0) in GPIO_DeInit()
164 tmp = AFIO->EXTI_CFG[position>>2]; in GPIO_DeInit()
185 if (position & 0x08) in GPIO_DeInit()
197 position++; in GPIO_DeInit()
224 uint32_t position = 0x00U; in GPIO_InitPeripheral() local
238 while (((GPIO_InitStruct->Pin)>>position) != 0) in GPIO_InitPeripheral()
243 pinpos = position * 2U; in GPIO_InitPeripheral()
250 if (position & 0x08) in GPIO_InitPeripheral()
326 tmp &= ~((uint32_t)0x01<<position); in GPIO_InitPeripheral()
[all …]
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/
A Dn32l40x_gpio.c120 uint32_t position = 0x00U; in GPIO_DeInit() local
155 while ((GPIO_Pin >> position) != 0) in GPIO_DeInit()
164 tmp = AFIO->EXTI_CFG[position>>2]; in GPIO_DeInit()
185 if (position & 0x08) in GPIO_DeInit()
197 position++; in GPIO_DeInit()
224 uint32_t position = 0x00U; in GPIO_InitPeripheral() local
238 while (((GPIO_InitStruct->Pin)>>position) != 0) in GPIO_InitPeripheral()
243 pinpos = position * 2U; in GPIO_InitPeripheral()
250 if (position & 0x08) in GPIO_InitPeripheral()
326 tmp &= ~((uint32_t)0x01<<position); in GPIO_InitPeripheral()
[all …]
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/
A Dn32g43x_gpio.c120 uint32_t position = 0x00U; in GPIO_DeInit() local
155 while ((GPIO_Pin >> position) != 0) in GPIO_DeInit()
164 tmp = AFIO->EXTI_CFG[position>>2]; in GPIO_DeInit()
185 if (position & 0x08) in GPIO_DeInit()
197 position++; in GPIO_DeInit()
224 uint32_t position = 0x00U; in GPIO_InitPeripheral() local
238 while (((GPIO_InitStruct->Pin)>>position) != 0) in GPIO_InitPeripheral()
243 pinpos = position * 2U; in GPIO_InitPeripheral()
250 if (position & 0x08) in GPIO_InitPeripheral()
326 tmp &= ~((uint32_t)0x01<<position); in GPIO_InitPeripheral()
[all …]
/bsp/microchip/samd51-adafruit-metro-m4/bsp/hal/utils/src/
A Dutils_event.c46 const uint8_t position = id >> 3; in event_subscribe() local
51 if (event->mask[position] & mask) { in event_subscribe()
60 event->mask[position] |= mask; in event_subscribe()
62 subscribed[position] |= mask; in event_subscribe()
70 const uint8_t position = id >> 3; in event_unsubscribe() local
77 if (!(event->mask[position] & mask)) { in event_unsubscribe()
81 event->mask[position] &= ~mask; in event_unsubscribe()
86 if (current->mask[position] & mask) { in event_unsubscribe()
91 subscribed[position] &= ~mask; in event_unsubscribe()
114 if (!(subscribed[position] & mask)) { in event_post()
[all …]
/bsp/microchip/samc21/bsp/hal/utils/src/
A Dutils_event.c46 const uint8_t position = id >> 3; in event_subscribe() local
51 if (event->mask[position] & mask) { in event_subscribe()
60 event->mask[position] |= mask; in event_subscribe()
62 subscribed[position] |= mask; in event_subscribe()
70 const uint8_t position = id >> 3; in event_unsubscribe() local
77 if (!(event->mask[position] & mask)) { in event_unsubscribe()
81 event->mask[position] &= ~mask; in event_unsubscribe()
86 if (current->mask[position] & mask) { in event_unsubscribe()
91 subscribed[position] &= ~mask; in event_unsubscribe()
114 if (!(subscribed[position] & mask)) { in event_post()
[all …]
/bsp/microchip/samd51-seeed-wio-terminal/bsp/hal/utils/src/
A Dutils_event.c46 const uint8_t position = id >> 3; in event_subscribe() local
51 if (event->mask[position] & mask) { in event_subscribe()
60 event->mask[position] |= mask; in event_subscribe()
62 subscribed[position] |= mask; in event_subscribe()
70 const uint8_t position = id >> 3; in event_unsubscribe() local
77 if (!(event->mask[position] & mask)) { in event_unsubscribe()
81 event->mask[position] &= ~mask; in event_unsubscribe()
86 if (current->mask[position] & mask) { in event_unsubscribe()
91 subscribed[position] &= ~mask; in event_unsubscribe()
114 if (!(subscribed[position] & mask)) { in event_post()
[all …]
/bsp/microchip/saml10/bsp/hal/utils/src/
A Dutils_event.c46 const uint8_t position = id >> 3; in event_subscribe() local
51 if (event->mask[position] & mask) { in event_subscribe()
60 event->mask[position] |= mask; in event_subscribe()
62 subscribed[position] |= mask; in event_subscribe()
70 const uint8_t position = id >> 3; in event_unsubscribe() local
77 if (!(event->mask[position] & mask)) { in event_unsubscribe()
81 event->mask[position] &= ~mask; in event_unsubscribe()
86 if (current->mask[position] & mask) { in event_unsubscribe()
91 subscribed[position] &= ~mask; in event_unsubscribe()
114 if (!(subscribed[position] & mask)) { in event_post()
[all …]
/bsp/microchip/same70/bsp/hal/utils/src/
A Dutils_event.c46 const uint8_t position = id >> 3; in event_subscribe() local
51 if (event->mask[position] & mask) { in event_subscribe()
60 event->mask[position] |= mask; in event_subscribe()
62 subscribed[position] |= mask; in event_subscribe()
70 const uint8_t position = id >> 3; in event_unsubscribe() local
77 if (!(event->mask[position] & mask)) { in event_unsubscribe()
81 event->mask[position] &= ~mask; in event_unsubscribe()
86 if (current->mask[position] & mask) { in event_unsubscribe()
91 subscribed[position] &= ~mask; in event_unsubscribe()
114 if (!(subscribed[position] & mask)) { in event_post()
[all …]
/bsp/microchip/same54/bsp/hal/utils/src/
A Dutils_event.c46 const uint8_t position = id >> 3; in event_subscribe() local
51 if (event->mask[position] & mask) { in event_subscribe()
60 event->mask[position] |= mask; in event_subscribe()
62 subscribed[position] |= mask; in event_subscribe()
70 const uint8_t position = id >> 3; in event_unsubscribe() local
77 if (!(event->mask[position] & mask)) { in event_unsubscribe()
81 event->mask[position] &= ~mask; in event_unsubscribe()
86 if (current->mask[position] & mask) { in event_unsubscribe()
91 subscribed[position] &= ~mask; in event_unsubscribe()
114 if (!(subscribed[position] & mask)) { in event_post()
[all …]
/bsp/synwit/libraries/SWM320_drivers/
A Ddrv_nor_flash.c34 rt_off_t position, in swm_norflash_read() argument
39 memcpy(data, ((const void *)(NORFLM_BASE + position)), size); in swm_norflash_read()
45 rt_off_t position, in swm_norflash_write() argument
54 NORFL_Write(position, hwdata[i]); in swm_norflash_write()
55 position += 2; in swm_norflash_write()
/bsp/ft32/libraries/Drivers/
A Ddrv_gpio.c300 uint32_t position = 0x00u; in rt_gpio_deinit() local
305 while ((GPIO_Pin >> position) != 0x00u) in rt_gpio_deinit()
308 iocurrent = (GPIO_Pin) & (1uL << position); in rt_gpio_deinit()
315 tmp = SYSCFG->EXTICR[position >> 2u]; in rt_gpio_deinit()
316 tmp &= (0x0FuL << (4u * (position & 0x03u))); in rt_gpio_deinit()
328 tmp = 0x0FuL << (4u * (position & 0x03u)); in rt_gpio_deinit()
329 SYSCFG->EXTICR[position >> 2u] &= ~tmp; in rt_gpio_deinit()
334 GPIOx->MODER &= ~(GPIO_MODER_MODER0 << (position * 2u)); in rt_gpio_deinit()
337 GPIOx->AFR[position >> 3u] &= ~(0xFu << ((uint32_t)(position & 0x07u) * 4u)) ; in rt_gpio_deinit()
343 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT_0 << position) ; in rt_gpio_deinit()
[all …]
/bsp/simulator/drivers/
A Dsd_sim.c55 static rt_ssize_t rt_sdcard_read(rt_device_t device, rt_off_t position, void *buffer, rt_size_t siz… in rt_sdcard_read() argument
60 LOG_I("sd read: pos %d, size %d", position, size); in rt_sdcard_read()
64 fseek(sd->file, position * SECTOR_SIZE, SEEK_SET); in rt_sdcard_read()
83 static rt_ssize_t rt_sdcard_write(rt_device_t device, rt_off_t position, const void *buffer, rt_siz… in rt_sdcard_write() argument
88 LOG_I("sst write: pos %d, size %d", position, size); in rt_sdcard_write()
92 fseek(sd->file, position * SECTOR_SIZE, SEEK_SET); in rt_sdcard_write()
A Dsst25vfxx_mtd_sim.c49 static int sst25vfxx_read(struct rt_mtd_nor_device *device, rt_off_t position, rt_uint8_t *data, rt… in sst25vfxx_read() argument
69 fseek(sst25->file, position, SEEK_SET); in sst25vfxx_read()
78 static int sst25vfxx_write(struct rt_mtd_nor_device *device, rt_off_t position, in sst25vfxx_write() argument
99 fseek(sst25->file, position, SEEK_SET); in sst25vfxx_write()
/bsp/rv32m1_vega/rv32m1_sdk_riscv/devices/RV32M1/utilities/
A Dfsl_shell.c548 uint32_t position; in ParseLine() local
555 position = 0; in ParseLine()
558 while (position < len) in ParseLine()
561 while (((char)(*p) == ' ') && (position < len)) in ParseLine()
565 position++; in ParseLine()
571 position++; in ParseLine()
575 while ((*p != '"') && (position < len)) in ParseLine()
578 position++; in ParseLine()
583 position++; in ParseLine()
589 while (((char)*p != ' ') && ((char)*p != '\t') && (position < len)) in ParseLine()
[all …]
/bsp/Vango/v85xxp/Libraries/VangoV85xxP_standard_peripheral/Source/
A Dlib_adc.c321 uint32_t position = 0x00U; in ADC_THDInit() local
329 while ((ADC_THDStruct->THDSource >> position) != 0U) in ADC_THDInit()
332 currentch = ADC_THDStruct->THDSource & (0x01U << position); in ADC_THDInit()
338 position++; in ADC_THDInit()
357 tmp |= (position << (ADC_THDStruct->THDChannel*4+ANA_ADCDATATHD_CH_THD0_CH_Pos)); in ADC_THDInit()
619 uint32_t position = 0x0000UL; in ADC_GetADCConversionValue() local
625 while ((Channel >> position) != 0UL) in ADC_GetADCConversionValue()
627 chcurrent = Channel & (0x01U << position); in ADC_GetADCConversionValue()
630 position++; in ADC_GetADCConversionValue()
632 return (ANA->ADCDATA[position]); in ADC_GetADCConversionValue()
A Dlib_pwm.c369 uint32_t position = 0; in PWM_OLineConfig() local
376 while ((OLine >> position) != 0UL) in PWM_OLineConfig()
378 if ((OLine >> position) & 1UL) in PWM_OLineConfig()
380 tmp &= ~(PWM_SEL_O_SEL_SEL0 << (position * 4)); in PWM_OLineConfig()
381 tmp |= (OutSelection << (position * 4)); in PWM_OLineConfig()
383 position++; in PWM_OLineConfig()
/bsp/hpmicro/libraries/hpm_sdk/drivers/src/
A Dhpm_mmc_drv.c63 para->position = 0; in mmc_get_default_pos_or_delta_pos_para()
79 base->INI_POS = para->position; in mmc_track_config_pos_para()
96 base->INI_DELTA_POS = para->position; in mmc_track_config_delta_para()
145 pos_out->position = base->ESTM_POS; in mmc_track_get_result()
208 base->BR[index].BR_INI_POS = para->position; in mmc_pred_config_pos_para()
228 base->BR[index].BR_INI_DELTA_POS = para->position; in mmc_pred_config_delta_para()
245 pos_out->position = base->BR[index].BR_CUR_POS; in mmc_pred_get_result()
/bsp/gd32/arm/tools/
A Dsdk_dist.py18 position = line.find('../libraries/gd32_drivers/Kconfig')
19 line = line[0:position] + 'libraries/gd32_drivers/Kconfig"\n'
/bsp/gd32/risc-v/tools/
A Dsdk_dist.py18 position = line.find('../libraries/gd32_drivers/Kconfig')
19 line = line[0:position] + 'libraries/gd32_drivers/Kconfig"\n'
/bsp/n32/tools/
A Dsdk_dist.py18 position = line.find('../libraries/n32_drivers/Kconfig')
19 line = line[0:position] + 'libraries/n32_drivers/Kconfig"\n'

Completed in 45 milliseconds

1234