19 #if defined(USE_FULL_LL_DRIVER) 24 #ifdef USE_FULL_ASSERT 25 #include "stm32_assert.h" 27 #define assert_param(expr) ((void)0U) 34 #if defined (OPAMP1) || defined (OPAMP2) 52 #define IS_LL_OPAMP_POWER_MODE(__POWER_MODE__) \ 53 ( ((__POWER_MODE__) == LL_OPAMP_POWERMODE_NORMAL) \ 54 || ((__POWER_MODE__) == LL_OPAMP_POWERMODE_LOWPOWER)) 56 #define IS_LL_OPAMP_FUNCTIONAL_MODE(__FUNCTIONAL_MODE__) \ 57 ( ((__FUNCTIONAL_MODE__) == LL_OPAMP_MODE_STANDALONE) \ 58 || ((__FUNCTIONAL_MODE__) == LL_OPAMP_MODE_FOLLOWER) \ 59 || ((__FUNCTIONAL_MODE__) == LL_OPAMP_MODE_PGA) \ 66 #define IS_LL_OPAMP_INPUT_NONINVERTING(__OPAMPX__, __INPUT_NONINVERTING__) \ 67 ( ((__INPUT_NONINVERTING__) == LL_OPAMP_INPUT_NONINVERT_IO0) \ 68 || ((__INPUT_NONINVERTING__) == LL_OPAMP_INPUT_NONINV_DAC1_CH1) \ 75 #define IS_LL_OPAMP_INPUT_INVERTING(__OPAMPX__, __INPUT_INVERTING__) \ 76 ( ((__INPUT_INVERTING__) == LL_OPAMP_INPUT_INVERT_IO0) \ 77 || ((__INPUT_INVERTING__) == LL_OPAMP_INPUT_INVERT_IO1) \ 78 || ((__INPUT_INVERTING__) == LL_OPAMP_INPUT_INVERT_CONNECT_NO) \ 107 ErrorStatus status = SUCCESS;
112 LL_OPAMP_WriteReg(OPAMPx, CSR, 0x00000000U);
165 (OPAMP_InitStruct->
PowerMode & OPAMP_POWERMODE_CSR_BIT_MASK)
180 (OPAMP_InitStruct->
PowerMode & OPAMP_POWERMODE_CSR_BIT_MASK)
181 | LL_OPAMP_MODE_FOLLOWER
183 | LL_OPAMP_INPUT_INVERT_CONNECT_NO
199 OPAMP_InitStruct->
PowerMode = LL_OPAMP_POWERMODE_NORMAL;
204 OPAMP_InitStruct->
InputInverting = LL_OPAMP_INPUT_INVERT_CONNECT_NO;
void LL_OPAMP_StructInit(LL_OPAMP_InitTypeDef *OPAMP_InitStruct)
Set each LL_OPAMP_InitTypeDef field to default value.
Structure definition of some features of OPAMP instance.
uint32_t InputNonInverting
Header file of OPAMP LL module.
ErrorStatus LL_OPAMP_Init(OPAMP_TypeDef *OPAMPx, LL_OPAMP_InitTypeDef *OPAMP_InitStruct)
Initialize some features of OPAMP instance.
ErrorStatus LL_OPAMP_DeInit(OPAMP_TypeDef *OPAMPx)
De-initialize registers of the selected OPAMP instance to their default reset values.
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))