forked from PAWPAW-Mirror/lib_xua
Remove extern, mark static inline
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2011-2022 XMOS LIMITED.
|
// Copyright 2011-2023 XMOS LIMITED.
|
||||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
#ifndef _XUA_AUDIOHUB_H_
|
#ifndef _XUA_AUDIOHUB_H_
|
||||||
#define _XUA_AUDIOHUB_H_
|
#define _XUA_AUDIOHUB_H_
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2011-2022 XMOS LIMITED.
|
// Copyright 2011-2023 XMOS LIMITED.
|
||||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
/**
|
/**
|
||||||
* @file xua_audiohub.xc
|
* @file xua_audiohub.xc
|
||||||
@@ -89,7 +89,6 @@ unsigned dsdMode = DSD_MODE_OFF;
|
|||||||
#if (XUA_ADAT_TX_EN)
|
#if (XUA_ADAT_TX_EN)
|
||||||
#include "audiohub_adat.h"
|
#include "audiohub_adat.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "xua_audiohub_st.h"
|
#include "xua_audiohub_st.h"
|
||||||
|
|
||||||
static inline int HandleSampleClock(int frameCount, buffered _XUA_CLK_DIR port:32 p_lrclk)
|
static inline int HandleSampleClock(int frameCount, buffered _XUA_CLK_DIR port:32 p_lrclk)
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
extern unsigned DoSampleTransfer(chanend ?c_out, const int readBuffNo, const unsigned underflowWord);
|
// Copyright 2011-2023 XMOS LIMITED.
|
||||||
|
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
|
|
||||||
|
|
||||||
#pragma unsafe arrays
|
#pragma unsafe arrays
|
||||||
inline unsigned DoSampleTransfer(chanend ?c_out, const int readBuffNo, const unsigned underflowWord)
|
static inline unsigned DoSampleTransfer(chanend ?c_out, const int readBuffNo, const unsigned underflowWord)
|
||||||
{
|
{
|
||||||
if(XUA_USB_EN)
|
if(XUA_USB_EN)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2011-2022 XMOS LIMITED.
|
// Copyright 2011-2023 XMOS LIMITED.
|
||||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
/**
|
/**
|
||||||
* @brief Implements endpoint zero for an USB Audio 1.0/2.0 device
|
* @brief Implements endpoint zero for an USB Audio 1.0/2.0 device
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2011-2022 XMOS LIMITED.
|
// Copyright 2011-2023 XMOS LIMITED.
|
||||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
/**
|
/**
|
||||||
* @brief Implements relevant requests from the USB Audio 2.0 Specification
|
* @brief Implements relevant requests from the USB Audio 2.0 Specification
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2022 XMOS LIMITED.
|
# Copyright 2022-2023 XMOS LIMITED.
|
||||||
# This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
# This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
import pytest
|
import pytest
|
||||||
import time
|
import time
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
// TODO
|
// Copyright 2022-2023 XMOS LIMITED.
|
||||||
// - use lib_random
|
|
||||||
// - use random seed from pytest
|
|
||||||
|
|
||||||
// Copyright 2022 XMOS LIMITED.
|
|
||||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
|
|
||||||
/* Tests that routing of mixer outputs behaves as expected
|
/* Tests that routing of mixer outputs behaves as expected
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2016-2022 XMOS LIMITED.
|
// Copyright 2016-2023 XMOS LIMITED.
|
||||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
#ifndef _XUA_CONF_H_
|
#ifndef _XUA_CONF_H_
|
||||||
#define _XUA_CONF_H_
|
#define _XUA_CONF_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user