mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
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
30 lines
560 B
C
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;
|
|
}
|