diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-01-10 14:09:02 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-01-10 14:14:59 -0800 |
commit | 39f86d2fad567661d64716d9e6e815802835ccaa (patch) | |
tree | dfc253556afea85e85155a4fc6da756603da8b6d /include/power_button.h | |
parent | 55ffdb465b7cdfb19380c681ae4542d4022a6aa2 (diff) | |
download | chrome-ec-39f86d2fad567661d64716d9e6e815802835ccaa.tar.gz |
Split power button code into its own file
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
Diffstat (limited to 'include/power_button.h')
-rw-r--r-- | include/power_button.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/power_button.h b/include/power_button.h new file mode 100644 index 0000000000..c6cf4f4e24 --- /dev/null +++ b/include/power_button.h @@ -0,0 +1,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 */ |