mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 01:50:53 +00:00
Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:7499 TEST=press and release power button; should see debug messages Change-Id: I8909ae4643afc98753edb690771618ad43135e3e
25 lines
647 B
C
25 lines
647 B
C
/* 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 */
|