Code gets stuck after enableInterrupts() and it does not function as per the logic.
#include "stm8l15x.h"#include "stm8l15x_gpio.h"#include "stm8l15x_exti.h"#include "stm8l15x_rtc.h"#include "stm8l15x_itc.h"#include "stm8l15x_clk.h"#define WAKEUP_GPIO_PORT GPIOE#define WAKEUP_GPIO_PORT GPIOE#define ICC_WAKEUP_GPIO_PIN GPIO_P...