示例#1
0
void wakeup_reset(void)
{
	/* wakeup reset pin pulled low? */
	if (!GPIO_ReadInputDataBit(RESET_PORT, WAKEUP_RESET_PIN)) {
		store_new_wakeup();
	}
}
示例#2
0
文件: main.c 项目: j1rie/IRMP_STM32
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 */
}