diff options
-rw-r--r-- | test/genvif/src/board.h | 4 | ||||
-rw-r--r-- | test/genvif/src/gpio.inc | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/genvif/src/board.h b/test/genvif/src/board.h index 8f175443d0..06122eeab9 100644 --- a/test/genvif/src/board.h +++ b/test/genvif/src/board.h @@ -7,3 +7,7 @@ #define PD_MAX_POWER_MW 65000 #define PD_MAX_CURRENT_MA 3250 #define PD_MAX_VOLTAGE_MV 20000 + +/* Stubs required by the shared code */ +#define GPIO_PIN(port, index) (GPIO_##port, BIT(index)) +#define GPIO_PIN_MASK(p, m) .port = GPIO_##p, .mask = (m) diff --git a/test/genvif/src/gpio.inc b/test/genvif/src/gpio.inc new file mode 100644 index 0000000000..6b96e08645 --- /dev/null +++ b/test/genvif/src/gpio.inc @@ -0,0 +1,8 @@ +/* -*- mode:c -*- + * + * Copyright 2022 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. + */ + +/* Stub file only */
\ No newline at end of file |