blob: ff858cd5270665dde223999ed58d1832e1e69238 [file] [log] [blame] [edit]
/* Copyright 2023 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef __STARFISH_BUTTON_H__
#define __STARFISH_BUTTON_H__
#include <zephyr/kernel.h>
#include "gpio_helper.h"
enum BUTTON_STATE {
/* Button is cleared and is not pressed. */
BUTTON_INACTIVE,
/* Button is currently being pressed. */
BUTTON_HELD,
/* Marker to identify pending events. */
BUTTON_PENDING_EVENT_START,
/* Button has a short press event. */
BUTTON_SHORT = BUTTON_PENDING_EVENT_START,
/* Button has a long press event. */
BUTTON_LONG,
};
#endif /* __STARFISH_BUTTON_H__ */