/** * @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_stm32f072xb.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file */ Configure_GPIO_LED(); Configure_GPIO_TSC(); Configure_TSC(); Configure_GPIO_Button(); Configure_EXTI(); Configure_Systick(); /* First acquisition */ TSC->CR |= (1<<1); /* TSC_CR_START = 1 */ /* Infinite loop */ while (1) { /* Comment this function to perform only one acquisition */ Process(); } }
/** * @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_stm32f072xb.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file */ Configure_GPIO_LED(); Configure_GPIO_CEC(); Configure_CEC(); Configure_GPIO_Button(); Configure_EXTI(); /* Infinite loop */ while (1) { } }