Files
OpenCellular/include/switch.h
Bill Richardson 0bfb7ddd07 Replace generated CONFIG_TASK_ macros with HAS_TASK_
CONFIG_ macros should be set directly. Expanding the task names in the same
way made it difficult to tell what was a configuration choice and what was
due to changes in ec.tasklist

BUG=chrome-os-partner:18343
TEST=build all, run link
BRANCH=none

Change-Id: Ib82e34f974238ee2dd216f33b701b6f4c6a4f1f1
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/49098
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-04-24 16:32:58 -07:00

31 lines
684 B
C

/* Copyright (c) 2013 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.
*/
/* Switch module for Chrome EC */
#ifndef __CROS_EC_SWITCH_H
#define __CROS_EC_SWITCH_H
#include "common.h"
#include "gpio.h"
#ifdef HAS_TASK_SWITCH
/**
* Interrupt handler for switch inputs.
*
* @param signal Signal which triggered the interrupt.
*/
void switch_interrupt(enum gpio_signal signal);
#else
#define switch_interrupt NULL
#endif /* HAS_TASK_SWITCH */
/**
* Return non-zero if write protect signal is asserted.
*/
int switch_get_write_protect(void);
#endif /* __CROS_EC_SWITCH_H */