/** * @brief Main program. * @param None * @retval None */ int main(void) { /*!< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32l1xx_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32l1xx.c file */ /* Confgure OPAMP2 */ OPAMP_Config(); /* Infinite loop */ while (1) { } }
/** * @brief Main program. * @param None * @retval None */ int main(void) { /*!< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f30x.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f30x.c file */ /* OPAMP1 configuration: OPAMP1 in internal follower mode, OPAMP1 output is internally connected to ADC1 Channel 3 (PA2) */ OPAMP_Config(); /* ADC1 configuration: Channel 3 (PA2) in continuous mode using software start conversion, End Of Conversion (EOC) interrupt is enabled */ ADC_Config(); while (1) { } }