blob: c6cf4f4e24ce6db34e72dd224cfe325d6ac51204 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Power button module for Chrome EC */
#ifndef __CROS_EC_POWER_BUTTON_H
#define __CROS_EC_POWER_BUTTON_H
#include "common.h"
#include "gpio.h"
/* Initializes the module. */
int power_button_init(void);
/* Interrupt handler for the power button and lid switch. Passed the signal
* which triggered the interrupt. */
void power_button_interrupt(enum gpio_signal signal);
/* Power button task */
void power_button_task(void);
#endif /* __CROS_EC_POWER_BUTTON_H */
|