blob: f8186ab06439b59ca0549488d05adc3c0b346b5b [file] [log] [blame]
/* Copyright (c) 2022 Intel Corporation
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_TESTS_INTEL_ADSP_TESTS_H
#define ZEPHYR_TESTS_INTEL_ADSP_TESTS_H
#include <intel_adsp_ipc.h>
#include <cavstool.h>
#include <stdint.h>
#include <zephyr/device.h>
#include <zephyr/ztest.h>
static inline void hda_ipc_msg(const struct device *dev, uint32_t data,
uint32_t ext, k_timeout_t timeout)
{
int ret = intel_adsp_ipc_send_message_sync(dev, data, ext, timeout);
zassert_true(!ret, "Unexpected ipc send message failure, error code: %d", ret);
}
#endif /* ZEPHYR_TESTS_INTEL_ADSP_TESTS_H */