MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ACMP_Reset

Function ACMP_Reset

bsp/efm32/Libraries/emlib/src/em_acmp.c:185–194  ·  view source on GitHub ↗

/ * @brief * Reset ACMP to same state as after a HW reset. * * @note * The ROUTE register is NOT reset by this function, in order to allow for * centralized setup of this feature. * * @param[in] acmp * Pointer to the ACMP peripheral register block. ******************************************************************************/

Source from the content-addressed store, hash-verified

183 * Pointer to the ACMP peripheral register block.
184 ******************************************************************************/
185void ACMP_Reset(ACMP_TypeDef *acmp)
186{
187 /* Make sure the module exists on the selected chip */
188 EFM_ASSERT(ACMP_REF_VALID(acmp));
189
190 acmp->CTRL = _ACMP_CTRL_RESETVALUE;
191 acmp->INPUTSEL = _ACMP_INPUTSEL_RESETVALUE;
192 acmp->IEN = _ACMP_IEN_RESETVALUE;
193 acmp->IFC = _ACMP_IF_MASK;
194}
195
196/***************************************************************************//**
197 * @brief

Callers 1

rt_hw_acmp_unit_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected