blob: ecb55e92d55fe9757c8b6714f7e3889b24f011bf [file] [log] [blame]
/*
* Copyright (c) 2018 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <power.h>
#include <soc_power.h>
#include <misc/printk.h>
#include <string.h>
#include <board.h>
#include <device.h>
#include <gpio.h>
#define SECONDS_TO_SLEEP 1
#define GPIO_CFG_SENSE_LOW (GPIO_PIN_CNF_SENSE_Low << GPIO_PIN_CNF_SENSE_Pos)
/* change this to use another GPIO port */
#define PORT SW0_GPIO_NAME
#define BUTTON_1 SW0_GPIO_PIN
#define BUTTON_2 SW1_GPIO_PIN
#define LOW 0