Home
last modified time | relevance | path

Searched refs:polarity (Results 1 – 25 of 148) sorted by relevance

123456

/bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/
A Dhal_tim.c514 MODIFY_REG(tim->SMCR, TIM_SMCR_ETP, polarity); in TIM_ETRConfig()
538 TIM_ETRConfig(tim, psc, polarity, filter); in TIM_ETRClockMode1Config()
561 TIM_ETRConfig(tim, psc, polarity, filter); in TIM_ETRClockMode2Config()
928 MODIFY_REG(tim->CCER, TIM_CCER_CC1P, polarity); in TIM_OC1PolarityConfig()
942 MODIFY_REG(tim->CCER, TIM_CCER_CC1NP, polarity); in TIM_OC1NPolarityConfig()
956 MODIFY_REG(tim->CCER, TIM_CCER_CC2P, polarity << 4); in TIM_OC2PolarityConfig()
970 MODIFY_REG(tim->CCER, TIM_CCER_CC2NP, polarity << 4); in TIM_OC2NPolarityConfig()
984 MODIFY_REG(tim->CCER, TIM_CCER_CC3P, polarity << 8); in TIM_OC3PolarityConfig()
998 MODIFY_REG(tim->CCER, TIM_CCER_CC3NP, polarity << 8); in TIM_OC3NPolarityConfig()
1012 MODIFY_REG(tim->CCER, TIM_CCER_CC4P, polarity << 12); in TIM_OC4PolarityConfig()
[all …]
/bsp/efm32/Libraries/emlib/src/
A Dem_ebi.c414 void EBI_PolaritySet(EBI_Line_TypeDef line, EBI_Polarity_TypeDef polarity) in EBI_PolaritySet() argument
425 BITBAND_Peripheral(&(EBI->POLARITY), _EBI_POLARITY_WEPOL_SHIFT, polarity); in EBI_PolaritySet()
428 BITBAND_Peripheral(&(EBI->POLARITY), _EBI_POLARITY_REPOL_SHIFT, polarity); in EBI_PolaritySet()
431 BITBAND_Peripheral(&(EBI->POLARITY), _EBI_POLARITY_CSPOL_SHIFT, polarity); in EBI_PolaritySet()
435 BITBAND_Peripheral(&(EBI->POLARITY), _EBI_POLARITY_BLPOL_SHIFT, polarity); in EBI_PolaritySet()
1075 BITBAND_Peripheral(polRegister, _EBI_POLARITY_ARDYPOL_SHIFT, polarity); in EBI_BankPolaritySet()
1078 BITBAND_Peripheral(polRegister, _EBI_POLARITY_ALEPOL_SHIFT, polarity); in EBI_BankPolaritySet()
1081 BITBAND_Peripheral(polRegister, _EBI_POLARITY_WEPOL_SHIFT, polarity); in EBI_BankPolaritySet()
1084 BITBAND_Peripheral(polRegister, _EBI_POLARITY_REPOL_SHIFT, polarity); in EBI_BankPolaritySet()
1087 BITBAND_Peripheral(polRegister, _EBI_POLARITY_CSPOL_SHIFT, polarity); in EBI_BankPolaritySet()
[all …]
/bsp/apm32/libraries/APM32S10x_Library/APM32S10x_StdPeriphDriver/src/
A Dapm32s10x_tmr.c125 tmr->CCEN_B.CC1POL = OCConfig->polarity; in TMR_ConfigOC1()
159 tmr->CCEN_B.CC2POL = OCConfig->polarity; in TMR_ConfigOC2()
196 tmr->CCEN_B.CC3POL = OCConfig->polarity; in TMR_ConfigOC3()
232 tmr->CCEN_B.CC4POL = OCConfig->polarity; in TMR_ConfigOC4()
325 OCConfig->polarity = TMR_OC_POLARITY_HIGH; in TMR_ConfigOCStructInit()
341 ICConfig->polarity = TMR_IC_POLARITY_RISING; in TMR_ConfigICStructInit()
674 tmr->SMCTRL_B.ETPOL = polarity; in TMR_ConfigETR()
1169 tmr->CCEN_B.CC1POL = polarity; in TMR_ConfigOC1Polarity()
1203 tmr->CCEN_B.CC2POL = polarity; in TMR_ConfigOC2Polarity()
1237 tmr->CCEN_B.CC3POL = polarity; in TMR_ConfigOC3Polarity()
[all …]
/bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Inc/
A Dhal_tim.h584 static void TI1_Configure(TIM_TypeDef* tim, u16 polarity, u16 selection, u16 filter);
585 static void TI2_Configure(TIM_TypeDef* tim, u16 polarity, u16 selection, u16 filter);
586 static void TI3_Configure(TIM_TypeDef* tim, u16 polarity, u16 selection, u16 filter);
653 void TIM_OC1PolarityConfig(TIM_TypeDef* tim, TIMCCxP_Typedef polarity);
654 void TIM_OC1NPolarityConfig(TIM_TypeDef* tim, TIMCCxNP_Typedef polarity);
655 void TIM_OC2PolarityConfig(TIM_TypeDef* tim, TIMCCxP_Typedef polarity);
656 void TIM_OC2NPolarityConfig(TIM_TypeDef* tim, TIMCCxNP_Typedef polarity);
657 void TIM_OC3PolarityConfig(TIM_TypeDef* tim, TIMCCxP_Typedef polarity);
658 void TIM_OC3NPolarityConfig(TIM_TypeDef* tim, TIMCCxNP_Typedef polarity);
659 void TIM_OC4PolarityConfig(TIM_TypeDef* tim, TIMCCxP_Typedef polarity);
[all …]
/bsp/apm32/libraries/APM32E10x_Library/APM32E10x_StdPeriphDriver/src/
A Dapm32e10x_tmr.c153 tmr->CCEN_B.CC1POL = OC1Config->polarity; in TMR_ConfigOC1()
187 tmr->CCEN_B.CC2POL = OC2Config->polarity; in TMR_ConfigOC2()
224 tmr->CCEN_B.CC3POL = OC3Config->polarity; in TMR_ConfigOC3()
260 tmr->CCEN_B.CC4POL = OC4Config->polarity; in TMR_ConfigOC4()
353 OCConfig->polarity = TMR_OC_POLARITY_HIGH; in TMR_ConfigOCStructInit()
369 ICConfig->polarity = TMR_IC_POLARITY_RISING; in TMR_ConfigICStructInit()
701 tmr->SMCTRL_B.ETPOL = polarity; in TMR_ConfigETR()
1178 tmr->CCEN_B.CC1POL = polarity; in TMR_ConfigOC1Polarity()
1210 tmr->CCEN_B.CC2POL = polarity; in TMR_ConfigOC2Polarity()
1242 tmr->CCEN_B.CC3POL = polarity; in TMR_ConfigOC3Polarity()
[all …]
A Dapm32e10x_spi.c81 spiConfig->length | spiConfig->polarity | in SPI_Config()
151 (uint32_t)i2sConfig->polarity; in I2S_Config()
169 spiConfig->polarity = SPI_CLKPOL_LOW; in SPI_ConfigStructInit()
191 i2sConfig->polarity = I2S_CLKPOL_LOW; in I2S_ConfigStructInit()
/bsp/apm32/libraries/APM32F10x_Library/APM32F10x_StdPeriphDriver/src/
A Dapm32f10x_tmr.c152 tmr->CCEN_B.CC1POL = OCConfig->polarity; in TMR_ConfigOC1()
186 tmr->CCEN_B.CC2POL = OCConfig->polarity; in TMR_ConfigOC2()
223 tmr->CCEN_B.CC3POL = OCConfig->polarity; in TMR_ConfigOC3()
259 tmr->CCEN_B.CC4POL = OCConfig->polarity; in TMR_ConfigOC4()
352 OCConfig->polarity = TMR_OC_POLARITY_HIGH; in TMR_ConfigOCStructInit()
368 ICConfig->polarity = TMR_IC_POLARITY_RISING; in TMR_ConfigICStructInit()
715 tmr->SMCTRL_B.ETPOL = polarity; in TMR_ConfigETR()
1192 tmr->CCEN_B.CC1POL = polarity; in TMR_ConfigOC1Polarity()
1224 tmr->CCEN_B.CC2POL = polarity; in TMR_ConfigOC2Polarity()
1256 tmr->CCEN_B.CC3POL = polarity; in TMR_ConfigOC3Polarity()
[all …]
A Dapm32f10x_spi.c81 spiConfig->length | spiConfig->polarity | in SPI_Config()
151 (uint32_t)i2sConfig->polarity; in I2S_Config()
169 spiConfig->polarity = SPI_CLKPOL_LOW; in SPI_ConfigStructInit()
191 i2sConfig->polarity = I2S_CLKPOL_LOW; in I2S_ConfigStructInit()
/bsp/apm32/libraries/APM32F4xx_Library/APM32F4xx_StdPeriphDriver/src/
A Dapm32f4xx_tmr.c423 tmr->CCEN_B.CC1POL = OCConfig->polarity; in TMR_ConfigOC1()
456 tmr->CCEN_B.CC2POL = OCConfig->polarity; in TMR_ConfigOC2()
489 tmr->CCEN_B.CC3POL = OCConfig->polarity; in TMR_ConfigOC3()
521 tmr->CCEN_B.CC4POL = OCConfig->polarity; in TMR_ConfigOC4()
545 OCConfig->polarity = TMR_OC_POLARITY_HIGH; in TMR_ConfigOCStructInit()
938 tmr->CCEN_B.CC1POL = polarity; in TMR_ConfigOC1Polarity()
972 tmr->CCEN_B.CC2POL = polarity; in TMR_ConfigOC2Polarity()
1006 tmr->CCEN_B.CC3POL = polarity; in TMR_ConfigOC3Polarity()
1040 tmr->CCEN_B.CC4POL = polarity; in TMR_ConfigOC4Polarity()
1212 ICConfig->polarity = TMR_IC_POLARITY_RISING; in TMR_ConfigICStructInit()
[all …]
A Dapm32f4xx_spi.c98 spi->CTRL1_B.CPOL = spiConfig->polarity; in SPI_Config()
179 spi->I2SCFG_B.CPOL = i2sConfig->polarity; in I2S_Config()
197 spiConfig->polarity = SPI_CLKPOL_LOW; in SPI_ConfigStructInit()
219 i2sConfig->polarity = I2S_CLKPOL_LOW; in I2S_ConfigStructInit()
406 i2sExt->I2SCFG_B.CPOL = i2sConfig->polarity; in I2S_ConfigFullDuplex()
415 i2sExt->I2SCFG_B.CPOL = i2sConfig->polarity; in I2S_ConfigFullDuplex()
/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/
A Dfm33lc0xx_fl_comp.c104 assert_param(IS_FL_COMP_POLARITY(initStruct->polarity)); in FL_COMP_Init()
111 FL_COMP_SetOutputPolarity(COMPx, initStruct->polarity); in FL_COMP_Init()
159 initStruct->polarity = FL_COMP_OUTPUT_POLARITY_NORMAL; in FL_COMP_StructInit()
A Dfm33lc0xx_fl_gpio.c243 assert_param(IS_FL_GPIO_WKUP_EDGE(initStruct->polarity)); in FL_WKUP_Init()
245 FL_GPIO_SetWakeupEdge(GPIO, wakeup, initStruct->polarity); in FL_WKUP_Init()
281 initStruct_Wakeup->polarity = FL_GPIO_WAKEUP_TRIGGER_FALLING; in FL_WKUP_StructInit()
A Dfm33lc0xx_fl_uart.c287 assert_param(IS_FL_UART_INFRARED_POLARITY(initStruct->polarity)); in FL_UART_InfraRed_Init()
293 FL_UART_SetIRPolarity(UART, initStruct->polarity); in FL_UART_InfraRed_Init()
322 initStruct->polarity = FL_UART_INFRARED_POLARITY_NORMAL; in FL_UART_InfraRed_StructInit()
/bsp/essemi/es32vf2264/libraries/ALD/ES32VF2264/Source/
A Dald_timer.c56 static void timer_ti1_set_config(TIMER_TypeDef *TIMERx, ald_timer_ic_polarity_t polarity,
59 static void timer_ti2_set_config(TIMER_TypeDef *TIMERx, ald_timer_ic_polarity_t polarity,
1618 assert_param(IS_TIMER_IC_POLARITY(config->polarity)); in ald_timer_hall_sensor_init()
2332 assert_param(IS_TIMER_IC_POLARITY(config->polarity)); in ald_timer_ic_config_channel()
2396 assert_param(IS_TIMER_IC_POLARITY(config->polarity)); in ald_timer_one_pulse_config_channel()
2465 assert_param(IS_TIMER_CLEAR_INPUT_POLARITY(config->polarity)); in ald_timer_config_oc_ref_clear()
2475 (ald_timer_clock_polarity_t)config->polarity, config->filter); in ald_timer_config_oc_ref_clear()
2522 assert_param(IS_TIMER_CLOCK_POLARITY(config->polarity)); in ald_timer_config_clock_source()
2626 assert_param(IS_TIMER_CLOCK_POLARITY(config->polarity)); in ald_timer_slave_config_sync()
2656 assert_param(IS_TIMER_CLOCK_POLARITY(config->polarity)); in ald_timer_slave_config_sync_by_it()
[all …]
/bsp/essemi/es32f0654/libraries/ES32F065x_ALD_StdPeriph_Driver/Source/
A Dald_timer.c57 static void timer_ti1_set_config(TIMER_TypeDef *TIMERx, timer_ic_polarity_t polarity,
60 static void timer_ti2_set_config(TIMER_TypeDef *TIMERx, timer_ic_polarity_t polarity,
1631 assert_param(IS_TIMER_IC_POLARITY(config->polarity)); in ald_timer_hall_sensor_init()
2348 assert_param(IS_TIMER_IC_POLARITY(config->polarity)); in ald_timer_ic_config_channel()
2412 assert_param(IS_TIMER_IC_POLARITY(config->polarity)); in ald_timer_one_pulse_config_channel()
2481 assert_param(IS_TIMER_CLEAR_INPUT_POLARITY(config->polarity)); in ald_timer_config_oc_ref_clear()
2490 (timer_clock_polarity_t)config->polarity, config->filter); in ald_timer_config_oc_ref_clear()
2530 assert_param(IS_TIMER_CLOCK_POLARITY(config->polarity)); in ald_timer_config_clock_source()
2634 assert_param(IS_TIMER_CLOCK_POLARITY(config->polarity)); in ald_timer_slave_config_sync()
2664 assert_param(IS_TIMER_CLOCK_POLARITY(config->polarity)); in ald_timer_slave_config_sync_by_it()
[all …]
/bsp/essemi/es32f369x/libraries/ES32F36xx_ALD_StdPeriph_Driver/Source/
A Dald_timer.c58 static void timer_ti1_set_config(TIMER_TypeDef *TIMERx, timer_ic_polarity_t polarity,
61 static void timer_ti2_set_config(TIMER_TypeDef *TIMERx, timer_ic_polarity_t polarity,
1630 assert_param(IS_TIMER_IC_POLARITY(config->polarity)); in ald_timer_hall_sensor_init()
2347 assert_param(IS_TIMER_IC_POLARITY(config->polarity)); in ald_timer_ic_config_channel()
2411 assert_param(IS_TIMER_IC_POLARITY(config->polarity)); in ald_timer_one_pulse_config_channel()
2480 assert_param(IS_TIMER_CLEAR_INPUT_POLARITY(config->polarity)); in ald_timer_config_oc_ref_clear()
2490 (timer_clock_polarity_t)config->polarity, config->filter); in ald_timer_config_oc_ref_clear()
2537 assert_param(IS_TIMER_CLOCK_POLARITY(config->polarity)); in ald_timer_config_clock_source()
2641 assert_param(IS_TIMER_CLOCK_POLARITY(config->polarity)); in ald_timer_slave_config_sync()
2671 assert_param(IS_TIMER_CLOCK_POLARITY(config->polarity)); in ald_timer_slave_config_sync_by_it()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/test/pwm/
A Dtest_pwm.c64 config->polarity = PWM_POLARITY_NORMAL; in cmd_test_pwm()
67 hal_log_info("polarity = %d \n", config->polarity); in cmd_test_pwm()
/bsp/xuantie/libraries/xuantie_libraries/chip_riscv_dummy/src/drivers/
A Dpwm.c80 csi_pwm_polarity_t polarity) in csi_pwm_out_config() argument
131 csi_pwm_capture_polarity_t polarity, in csi_pwm_capture_config() argument
140 switch (polarity) { in csi_pwm_capture_config()
/bsp/allwinner/libraries/drivers/
A Ddrv_pwm.c76 pwm_cfg.polarity = PWM_POLARITY_NORMAL; in control()
89 pwm_cfg.polarity = PWM_POLARITY_NORMAL; in control()
109 pwm_cfg.polarity = PWM_POLARITY_NORMAL; in control()
/bsp/xuantie/libraries/xuantie_libraries/csi/csi2/include/drv/
A Dpwm.h91 csi_pwm_polarity_t polarity);
119 csi_pwm_capture_polarity_t polarity,
/bsp/synwit/libraries/SWM320_CSL/SWM320_StdPeriph_Driver/
A DSWM320_uart.c262 void UART_CTSConfig(UART_TypeDef * UARTx, uint32_t enable, uint32_t polarity) in UART_CTSConfig() argument
266 (polarity << UART_CTSCR_POL_Pos); in UART_CTSConfig()
291 void UART_RTSConfig(UART_TypeDef * UARTx, uint32_t enable, uint32_t polarity, uint32_t threshold) in UART_RTSConfig() argument
295 (polarity << UART_RTSCR_POL_Pos) | in UART_RTSConfig()
A DSWM320_uart.h72 void UART_CTSConfig(UART_TypeDef * UARTx, uint32_t enable, uint32_t polarity);
75 void UART_RTSConfig(UART_TypeDef * UARTx, uint32_t enable, uint32_t polarity, uint32_t threshold);
/bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/
A DSWM341_uart.c255 void UART_CTSConfig(UART_TypeDef * UARTx, uint32_t enable, uint32_t polarity) in UART_CTSConfig() argument
259 (polarity << UART_CTSCR_POL_Pos); in UART_CTSConfig()
284 void UART_RTSConfig(UART_TypeDef * UARTx, uint32_t enable, uint32_t polarity, uint32_t threshold) in UART_RTSConfig() argument
288 (polarity << UART_RTSCR_POL_Pos) | in UART_RTSConfig()
/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/
A Dfm33lc0xx_fl_uart.h77 uint32_t polarity; member
284 __STATIC_INLINE void FL_UART_SetIRPolarity(UART_COMMON_Type *UARTx, uint32_t polarity) in FL_UART_SetIRPolarity() argument
286 MODIFY_REG(UARTx->IRCR, UART_IRCR_IRFLAG_Msk, polarity); in FL_UART_SetIRPolarity()
643 __STATIC_INLINE void FL_UART_SetRXPolarity(UART_Type *UARTx, uint32_t polarity) in FL_UART_SetRXPolarity() argument
645 MODIFY_REG(UARTx->CSR, UART_CSR_RXPOL_Msk, polarity); in FL_UART_SetRXPolarity()
670 __STATIC_INLINE void FL_UART_SetTXPolarity(UART_Type *UARTx, uint32_t polarity) in FL_UART_SetTXPolarity() argument
672 MODIFY_REG(UARTx->CSR, UART_CSR_TXPOL_Msk, polarity); in FL_UART_SetTXPolarity()
/bsp/apm32/libraries/APM32F0xx_Library/APM32F0xx_StdPeriphDriver/src/
A Dapm32f0xx_crs.c225 void CRS_ConfigSynchronizationPolarity(CRS_SYNC_POL_T polarity) in CRS_ConfigSynchronizationPolarity() argument
227 CRS->CFG_B.SYNCPOLSEL = polarity; in CRS_ConfigSynchronizationPolarity()

Completed in 66 milliseconds

123456