void wakeup_reset(void) { /* wakeup reset pin pulled low? */ if (!GPIO_ReadInputDataBit(RESET_PORT, WAKEUP_RESET_PIN)) { store_new_wakeup(); } }
void wakeup_reset(void) { /* avoid AFIO in order to avoid having to flash with reset! */ #if !defined(StickLink) && !defined(GreenLink) /* wakeup reset pin pulled low? */ if (!GPIO_ReadInputDataBit(WAKEUP_RESET_PORT, WAKEUP_RESET_PIN)) { store_new_wakeup(); } #endif /* ST_Link */ }