diff options
Diffstat (limited to 'zephyr/test/skyrim/tests/common/src/common.c')
-rw-r--r-- | zephyr/test/skyrim/tests/common/src/common.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/zephyr/test/skyrim/tests/common/src/common.c b/zephyr/test/skyrim/tests/common/src/common.c index b369d0bdaa..0be4550026 100644 --- a/zephyr/test/skyrim/tests/common/src/common.c +++ b/zephyr/test/skyrim/tests/common/src/common.c @@ -2,6 +2,48 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ +#include "common.h" +#include "usbc/usb_muxes.h" + #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(skyrim, CONFIG_SKYRIM_LOG_LEVEL); + +/* + * Provide weak definitons for interrupt handlers. This minimizes the number + * of test-specific device tree overrides needed. + */ + +test_mockable void baseboard_soc_pcore_ocp(enum gpio_signal signal) +{ +} + +test_mockable void baseboard_soc_thermtrip(enum gpio_signal signal) +{ +} + +test_mockable int bmi3xx_interrupt(enum gpio_signal signal) +{ + return -EINVAL; +} + +test_mockable int board_anx7483_c0_mux_set(const struct usb_mux *me, + mux_state_t mux_state) +{ + return -EINVAL; +} + +test_mockable int board_anx7483_c1_mux_set(const struct usb_mux *me, + mux_state_t mux_state) +{ + return -EINVAL; +} + +test_mockable int power_interrupt_handler(const struct gpio_dt_spec *dt) +{ + return -EINVAL; +} + +test_mockable void throttle_ap_prochot_input_interrupt(enum gpio_signal signal) +{ +} |