Files
OpenCellular/chip/host/gpio.c
Vic Yang a0bfc0c669 Add lid switch test and enable kb_mkbp test
BUG=chrome-os-partner:19236
TEST=Pass both tests
BRANCH=None
CQ-DEPEND=CL:50467

Change-Id: I59cc407c2d1bf7f549ff9c46226cf7fa60fe7157
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/50466
2013-05-08 13:24:19 -07:00

30 lines
560 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.
*/
/* GPIO module for emulator */
#include "common.h"
#include "gpio.h"
test_mockable void gpio_pre_init(void)
{
/* Nothing */
}
test_mockable int gpio_get_level(enum gpio_signal signal)
{
return 0;
}
test_mockable void gpio_set_level(enum gpio_signal signal, int value)
{
/* Nothing */
}
test_mockable int gpio_enable_interrupt(enum gpio_signal signal)
{
return EC_SUCCESS;
}