mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 10:45:22 +00:00
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>
31 lines
684 B
C
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 */
|