VSF Documented
vsf_av_cfg.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18/*============================ INCLUDES ======================================*/
19
22
23#ifndef __VSF_AV_CFG_H__
24#define __VSF_AV_CFG_H__
25
26/*============================ MACROS ========================================*/
27
28#ifndef VSF_AV_ASSERT
29# define VSF_AV_ASSERT VSF_ASSERT
30#endif
31
32#ifndef VSF_AUDIO_CFG_EDA_PRIORITY
33# define VSF_AUDIO_CFG_EDA_PRIORITY vsf_prio_0
34#endif
35
36// ticktock adapter event dispatch mode: ENABLED = the adapter handler runs
37// synchronously in the stream-event context (immediate refill/zero-fill);
38// DISABLED = events queue via vsf_eda_post_evt to the adapter EDA (deferred,
39// keeps the handler off the caller's pre-emption context). Deferred refill
40// adds scheduling latency between DMA consumption and refill. DISABLED is
41// the designed default: as long as task preemption works and the adapter EDA
42// outranks the application (VSF_AUDIO_CFG_EDA_PRIORITY), deferred refill
43// stays timely. ENABLED exists for platforms without task preemption, where
44// deferred refill starves.
45#ifndef VSF_AUDIO_CFG_TICKTOCK_STREAM_ADAPTER_DIRECT
46# define VSF_AUDIO_CFG_TICKTOCK_STREAM_ADAPTER_DIRECT DISABLED
47#endif
48
49/*============================ MACROFIED FUNCTIONS ===========================*/
50/*============================ TYPES =========================================*/
51/*============================ GLOBAL VARIABLES ==============================*/
52/*============================ LOCAL VARIABLES ===============================*/
53/*============================ PROTOTYPES ====================================*/
54
55#endif
56/* EOF */
Generated from commit: vsfteam/vsf@2a137b0