| /bsp/apm32/libraries/APM32F0xx_Library/APM32F0xx_StdPeriphDriver/src/ |
| A D | apm32f0xx_comp.c | 78 COMP->CSTS = ((uint32_t)0x00000000); in COMP_Reset() 156 COMP->CSTS_B.EN1 = SET; in COMP_Enable() 160 COMP->CSTS_B.EN2 = SET; in COMP_Enable() 181 COMP->CSTS_B.EN1 = RESET; in COMP_Disable() 185 COMP->CSTS_B.EN2 = RESET; in COMP_Disable() 201 COMP->CSTS_B.SW1 = SET; in COMP_EnableSwitch() 213 COMP->CSTS_B.SW1 = RESET; in COMP_DisableSwitch() 259 COMP->CSTS_B.WMODEN = SET; in COMP_EnableWindow() 271 COMP->CSTS_B.WMODEN = RESET; in COMP_DisnableWindow() 288 COMP->CSTS_B.LOCK1 = SET; in COMP_ConfigLOCK() [all …]
|
| /bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/ |
| A D | n32l43x_comp.c | 129 pCS = &COMP->Cmp1; in COMP_Init() 131 pCS = &COMP->Cmp2; in COMP_Init() 238 return COMP->INTSTS; in COMP_GetIntSts() 251 COMP->VREFSCL = tmp; in COMP_SetRefScl() 271 COMP->LOCK = Lock; in COMP_SetLock() 276 COMP->INTEN = IntEn; in COMP_SetIntEn() 340 tmp=COMP->Cmp1.CTRL; in COMP_SetHyst() 342 tmp=COMP->Cmp2.CTRL; in COMP_SetHyst() 347 COMP->Cmp1.CTRL=tmp; in COMP_SetHyst() 349 COMP->Cmp2.CTRL=tmp; in COMP_SetHyst() [all …]
|
| /bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/ |
| A D | n32l40x_comp.c | 129 pCS = &COMP->Cmp1; in COMP_Init() 131 pCS = &COMP->Cmp2; in COMP_Init() 238 return COMP->INTSTS; in COMP_GetIntSts() 251 COMP->VREFSCL = tmp; in COMP_SetRefScl() 271 COMP->LOCK = Lock; in COMP_SetLock() 276 COMP->INTEN = IntEn; in COMP_SetIntEn() 340 tmp=COMP->Cmp1.CTRL; in COMP_SetHyst() 342 tmp=COMP->Cmp2.CTRL; in COMP_SetHyst() 347 COMP->Cmp1.CTRL=tmp; in COMP_SetHyst() 349 COMP->Cmp2.CTRL=tmp; in COMP_SetHyst() [all …]
|
| /bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/ |
| A D | n32g43x_comp.c | 129 pCS = &COMP->Cmp1; in COMP_Init() 131 pCS = &COMP->Cmp2; in COMP_Init() 238 return COMP->INTSTS; in COMP_GetIntSts() 251 COMP->VREFSCL = tmp; in COMP_SetRefScl() 271 COMP->LOCK = Lock; in COMP_SetLock() 276 COMP->INTEN = IntEn; in COMP_SetIntEn() 340 tmp=COMP->Cmp1.CTRL; in COMP_SetHyst() 342 tmp=COMP->Cmp2.CTRL; in COMP_SetHyst() 347 COMP->Cmp1.CTRL=tmp; in COMP_SetHyst() 349 COMP->Cmp2.CTRL=tmp; in COMP_SetHyst() [all …]
|
| /bsp/ft32/libraries/FT32F0xx/FT32F0xx_Driver/Src/ |
| A D | ft32f0xx_comp.c | 31 COMP->CSR2 = ((uint32_t)0x00000000); in COMP_DeInit() 65 tmpreg = COMP->CSR; in COMP_Init() 75 COMP->CSR = tmpreg; in COMP_Init() 81 tmpreg = COMP->CSR2; in COMP_Init() 91 COMP->CSR2 = tmpreg; in COMP_Init() 145 COMP->CSR |= (uint32_t) (1<<COMP_Selection); in COMP_Cmd() 159 COMP->CSR2 |= (uint32_t) (1); in COMP_Cmd() 164 COMP->CSR2 &= (uint32_t)(~((uint32_t)1)); in COMP_Cmd() 215 if ( (COMP->CSR2 & COMP_CSR_COMP3OUT) != 0) in COMP_GetOutputLevel() 251 COMP->CSR |= (uint32_t) COMP_CSR_WNDWEN; in COMP_WindowCmd() [all …]
|
| /bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/ |
| A D | n32g45x_comp.c | 170 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetInpSel() 176 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetInmSel() 182 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetOutTrig() 187 COMP->LOCK = Lock; in COMP_SetLock() 192 COMP->INTEN = IntEn; in COMP_SetIntEn() 197 return COMP->INTSTS; in COMP_GetIntSts() 210 COMP->VREFSCL = tmp; in COMP_SetRefScl() 232 COMP->Cmp[COMPx].FILP=FilPreVal; in COMP_SetFilterPrescaler() 261 uint32_t tmp=COMP->Cmp[COMPx].CTRL; in COMP_SetHyst() 264 COMP->Cmp[COMPx].CTRL=tmp; in COMP_SetHyst() [all …]
|
| /bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/ |
| A D | n32g45x_comp.c | 173 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetInpSel() 179 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetInmSel() 185 COMP->Cmp[COMPx].CTRL = tmp; in COMP_SetOutTrig() 190 COMP->LOCK = Lock; in COMP_SetLock() 195 COMP->INTEN = IntEn; in COMP_SetIntEn() 200 return COMP->INTSTS; in COMP_GetIntSts() 213 COMP->VREFSCL = tmp; in COMP_SetRefScl() 235 COMP->Cmp[COMPx].FILP=FilPreVal; in COMP_SetFilterPrescaler() 264 uint32_t tmp=COMP->Cmp[COMPx].CTRL; in COMP_SetHyst() 267 COMP->Cmp[COMPx].CTRL=tmp; in COMP_SetHyst() [all …]
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Inc/ |
| A D | stm32l1xx_ll_comp.h | 385 MODIFY_REG(COMP->CSR, COMP_CSR_SPEED, PowerMode); in LL_COMP_SetPowerMode() 400 return (uint32_t)(READ_BIT(COMP->CSR, COMP_CSR_SPEED)); in LL_COMP_GetPowerMode() 568 MODIFY_REG(COMP->CSR, in LL_COMP_SetInputMinus() 596 return (uint32_t)((READ_BIT(COMP->CSR, COMP_CSR_INSEL) * __COMP_IS_INSTANCE_EVEN(COMPx)) in LL_COMP_GetInputMinus() 622 MODIFY_REG(COMP->CSR, in LL_COMP_SetInputPullingResistor() 690 MODIFY_REG(COMP->CSR, in LL_COMP_SetOutputSelection() 720 return (uint32_t)((READ_BIT(COMP->CSR, COMP_CSR_OUTSEL) * __COMP_IS_INSTANCE_EVEN(COMPx)) in LL_COMP_GetOutputSelection() 752 SET_BIT(COMP->CSR, __COMP_IS_INSTANCE_ODD(COMPx) << LL_COMP_ENABLE_COMP1_BITOFFSET_POS); in LL_COMP_Enable() 770 …CLEAR_BIT(COMP->CSR, (COMP_CSR_CMP1EN * __COMP_IS_INSTANCE_ODD(COMPx)) | (COMP_CSR_INSEL * __COMP_… in LL_COMP_Disable() 783 …return (READ_BIT(COMP->CSR, (COMP_CSR_CMP1EN * __COMP_IS_INSTANCE_ODD(COMPx)) | (COMP_CSR_INSEL * … in LL_COMP_IsEnabled() [all …]
|
| A D | stm32l1xx_hal_adc_ex.h | 246 (SET_BIT(COMP->CSR, COMP_CSR_FCH3)) \ 250 (SET_BIT(COMP->CSR, COMP_CSR_FCH8)) \ 254 (SET_BIT(COMP->CSR, COMP_CSR_RCH13)) \ 256 (SET_BIT(COMP->CSR, 0x00000000)) \ 264 (CLEAR_BIT(COMP->CSR, COMP_CSR_FCH3)) \ 268 (CLEAR_BIT(COMP->CSR, COMP_CSR_FCH8)) \ 272 (CLEAR_BIT(COMP->CSR, COMP_CSR_RCH13)) \ 274 (SET_BIT(COMP->CSR, 0x00000000)) \
|
| A D | stm32l1xx_hal_comp.h | 325 SET_BIT(COMP->CSR, COMP_CSR_CMP1EN) \ 327 MODIFY_REG(COMP->CSR, COMP_CSR_INSEL, (__HANDLE__)->Init.InvertingInput ) \ 338 CLEAR_BIT(COMP->CSR, COMP_CSR_CMP1EN) \ 340 CLEAR_BIT(COMP->CSR, COMP_CSR_INSEL) \ 565 (((READ_BIT(COMP->CSR , COMP_CSR_CMP1EN) == COMP_CSR_CMP1EN) \ 568 (((READ_BIT(COMP->CSR , COMP_CSR_INSEL) != RESET) \
|
| A D | stm32l1xx_hal.h | 523 #define __HAL_SYSCFG_VREFINT_OUT_ENABLE() SET_BIT(COMP->CSR, COMP_CSR_VREFOUTEN) 524 #define __HAL_SYSCFG_VREFINT_OUT_DISABLE() CLEAR_BIT(COMP->CSR, COMP_CSR_VREFOUTEN) 748 #define __HAL_RI_SWITCH_COMP1_SW1_CLOSE() SET_BIT(COMP->CSR, COMP_CSR_SW1) 750 #define __HAL_RI_SWITCH_COMP1_SW1_OPEN() CLEAR_BIT(COMP->CSR, COMP_CSR_SW1)
|
| A D | stm32l1xx_ll_system.h | 983 SET_BIT(COMP->CSR, COMP_CSR_VREFOUTEN); in LL_VREFOUT_Enable() 993 CLEAR_BIT(COMP->CSR, COMP_CSR_VREFOUTEN); in LL_VREFOUT_Disable() 1003 return ((READ_BIT(COMP->CSR, COMP_CSR_VREFOUTEN) == COMP_CSR_VREFOUTEN) ? 1UL : 0UL); in LL_VREFOUT_IsEnabled()
|
| /bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/ |
| A D | hal_comp.c | 125 temreg = COMP->CRV; in COMP_SetCrv() 129 COMP->CRV = temreg; in COMP_SetCrv() 194 (state) ? (COMP->CRV |= COMP_CRV_EN_ENABLE) : (COMP->CRV &= ~COMP_CRV_EN_ENABLE); in exCOMP_CrvCmd() 204 COMP->CRV |= crv; in exCOMP_SwitchCrv() 215 COMP->CRV |= src; in exCOMP_CrvSrc()
|
| /bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/ |
| A D | fm33lc0xx_fl_comp.c | 125 FL_COMP_SetComparator1InterruptEdge(COMP, initStruct->edge); in FL_COMP_Init() 130 FL_COMP_SetComparator2InterruptEdge(COMP, initStruct->edge); in FL_COMP_Init() 136 { FL_COMP_EnableComparator1OutputFilter(COMP); } in FL_COMP_Init() 138 { FL_COMP_EnableComparator2OutputFilter(COMP); } in FL_COMP_Init() 143 { FL_COMP_DisableComparator1OutputFilter(COMP); } in FL_COMP_Init() 145 { FL_COMP_DisableComparator2OutputFilter(COMP); } in FL_COMP_Init()
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/ |
| A D | stm32l1xx_hal_comp.c | 348 MODIFY_REG(COMP->CSR, COMP_CSR_400KPD | COMP_CSR_10KPD | COMP_CSR_400KPU | COMP_CSR_10KPU, in HAL_COMP_Init() 361 MODIFY_REG(COMP->CSR, COMP_CSR_OUTSEL | in HAL_COMP_Init() 370 MODIFY_REG(COMP->CSR, COMP_CSR_OUTSEL | in HAL_COMP_Init() 392 if(READ_BIT(COMP->CSR, COMP_CSR_SW1) != RESET) in HAL_COMP_Init() 458 CLEAR_BIT(COMP->CSR , COMP_CSR_400KPD | COMP_CSR_10KPD | COMP_CSR_400KPU | COMP_CSR_10KPU); in HAL_COMP_DeInit() 462 CLEAR_BIT(COMP->CSR , COMP_CSR_OUTSEL | in HAL_COMP_DeInit() 985 if(READ_BIT(COMP->CSR, __COMP_CSR_CMPXOUT(hcomp)) == RESET) in HAL_COMP_GetOutputLevel()
|
| A D | stm32l1xx_ll_comp.c | 217 CLEAR_BIT(COMP->CSR, in LL_COMP_DeInit() 228 CLEAR_BIT(COMP->CSR, in LL_COMP_DeInit() 280 MODIFY_REG(COMP->CSR, in LL_COMP_Init()
|
| /bsp/samd21/sam_d2x_asflib/sam0/drivers/rtc/rtc_sam_d_r_h/ |
| A D | rtc_count.c | 464 rtc_module->MODE0.COMP[comp_index].reg = comp_value; in rtc_count_set_compare() 481 rtc_module->MODE1.COMP[comp_index].reg = comp_value & 0xffff; in rtc_count_set_compare() 530 *comp_value = rtc_module->MODE0.COMP[comp_index].reg; in rtc_count_get_compare() 541 *comp_value = (uint32_t)rtc_module->MODE1.COMP[comp_index].reg; in rtc_count_get_compare()
|
| /bsp/samd21/sam_d2x_asflib/sam0/drivers/rtc/rtc_sam_l_c/ |
| A D | rtc_count.c | 463 rtc_module->MODE0.COMP[comp_index].reg = comp_value; in rtc_count_set_compare() 480 rtc_module->MODE1.COMP[comp_index].reg = comp_value & 0xffff; in rtc_count_set_compare() 537 *comp_value = rtc_module->MODE0.COMP[comp_index].reg; in rtc_count_get_compare() 548 *comp_value = (uint32_t)rtc_module->MODE1.COMP[comp_index].reg; in rtc_count_get_compare()
|
| /bsp/rm48x50/HALCoGen/include/ |
| A D | reg_lin.h | 65 uint32 COMP; /**< 0x0060: Compare register */ member
|
| /bsp/samd21/sam_d2x_asflib/sam0/utils/cmsis/samd21/include/component/ |
| A D | ac.h | 172 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x Interrupt Enable */ member 209 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x Interrupt Enable */ member 246 __I uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x */ member
|
| /bsp/samd21/sam_d2x_asflib/sam0/utils/cmsis/samd20/include/component/ |
| A D | ac.h | 175 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x Interrupt Enable */ member 212 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x Interrupt Enable */ member 249 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x */ member
|
| A D | rtc.h | 881 uint32_t COMP:32; /*!< bit: 0..31 Compare Value */ member 899 uint16_t COMP:16; /*!< bit: 0..15 Compare Value */ member 1009 …__IO RTC_MODE0_COMP_Type COMP[1]; /**< \brief Offset: 0x18 (R/W 32) MODE0 Compare n Valu… member 1031 …__IO RTC_MODE1_COMP_Type COMP[2]; /**< \brief Offset: 0x18 (R/W 16) MODE1 Compare n Valu… member
|
| /bsp/microchip/samd51-adafruit-metro-m4/bsp/samd51a/include/component/ |
| A D | ac.h | 163 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x Interrupt Enable */ member 200 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x Interrupt Enable */ member 237 __I uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x */ member
|
| /bsp/microchip/same54/bsp/include/component/ |
| A D | ac.h | 163 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x Interrupt Enable */ member 200 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x Interrupt Enable */ member 237 __I uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x */ member
|
| /bsp/microchip/samd51-seeed-wio-terminal/bsp/samd51a/include/component/ |
| A D | ac.h | 163 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x Interrupt Enable */ member 200 uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x Interrupt Enable */ member 237 __I uint8_t COMP:2; /*!< bit: 0.. 1 Comparator x */ member
|