From 50966dda90adec6d008f00617f7ce9df3f941d0e Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Fri, 14 Jul 2023 16:07:38 +0100 Subject: [PATCH] Build fixes related to the use of i_pll_ref --- lib_xua/api/xua_buffer.h | 8 ++++---- lib_xua/src/core/buffer/ep/ep_buffer.xc | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib_xua/api/xua_buffer.h b/lib_xua/api/xua_buffer.h index b9f8e56b..e3f7280a 100644 --- a/lib_xua/api/xua_buffer.h +++ b/lib_xua/api/xua_buffer.h @@ -1,7 +1,7 @@ -// Copyright 2011-2022 XMOS LIMITED. +// Copyright 2011-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. -#ifndef __XUA_BUFFER_H__ -#define __XUA_BUFFER_H__ +#ifndef _XUA_BUFFER_H_ +#define _XUA_BUFFER_H_ #if __XC__ @@ -51,7 +51,7 @@ void XUA_Buffer( , chanend c_hid #endif , chanend c_aud -#if (XUA_SYNCMODE == XUA_SYNCMODE_SYNC) || defined(__DOXYGEN__) +#if ((XUA_SYNCMODE == XUA_SYNCMODE_SYNC) && !XUA_USE_APP_PLL) || defined(__DOXYGEN__) , client interface pll_ref_if i_pll_ref #endif ); diff --git a/lib_xua/src/core/buffer/ep/ep_buffer.xc b/lib_xua/src/core/buffer/ep/ep_buffer.xc index d4c1776d..c53a7db5 100644 --- a/lib_xua/src/core/buffer/ep/ep_buffer.xc +++ b/lib_xua/src/core/buffer/ep/ep_buffer.xc @@ -104,7 +104,7 @@ void XUA_Buffer( , chanend c_hid #endif , chanend c_aud -#if (XUA_SYNCMODE == XUA_SYNCMODE_SYNC) +#if ((XUA_SYNCMODE == XUA_SYNCMODE_SYNC) && !XUA_USE_APP_PLL) , client interface pll_ref_if i_pll_ref #endif ) @@ -140,7 +140,7 @@ void XUA_Buffer( #ifdef CHAN_BUFF_CTRL , c_buff_ctrl #endif -#if (XUA_SYNCMODE == XUA_SYNCMODE_SYNC) +#if ((XUA_SYNCMODE == XUA_SYNCMODE_SYNC) && !XUA_USE_APP_PLL) , i_pll_ref #endif ); @@ -190,7 +190,7 @@ void XUA_Buffer_Ep(register chanend c_aud_out, #ifdef CHAN_BUFF_CTRL , chanend c_buff_ctrl #endif -#if XUA_SYNCMODE == XUA_SYNCMODE_SYNC +#if ((XUA_SYNCMODE == XUA_SYNCMODE_SYNC) && !XUA_USE_APP_PLL) , client interface pll_ref_if i_pll_ref #endif )