📄 csl2_dat_edma3lld_config.h
字号:
/*
* Copyright 2006
* Texas Instruments Incorporated
*
* All rights reserved. Property of Texas Instruments Incorporated
* Restricted rights to use, duplicate or disclose this code are
* granted through contract.
*
*/
/**
* @file csl2_dat_edma3lld_config.h
*
* @brief Defines the hardware specific parameters required by the
* CSL DAT2 EDMA3 Adapter
*
*
*/
#ifndef _CSL_DAT2_EDMA3LLD_CONFIG_H
#define _CSL_DAT2_EDMA3LLD_CONFIG_H
/*
* Settings to be used with the EDMA3 DRV APIs
*/
#define DAT_EDMA3LLD_HW_REGION_ID 0x1u /* DSP mapped to region1 on Davinci */
#define DAT_EDMA3LLD_HW_INST_ID 0u /* Hardware instance id */
#define DAT_EDMA3LLD_HW_EVT_QUEUE_ID 0u /* Event queue number to be used */
#define DAT_EDMA3LLD_HW_MAXPHYCHANNELS 64u /* Max number of physical channels */
/*
* Settings for the DAT adapter layer
* has to be double checked by system integrator
*/
#define DAT_QUEUEDEPTH 10u /* Maximum number of channels/tcc(s)
* allocated to the DAT layer
*/
/*
* Convenience MACROs for use in DAT adapter layer
*/
/*
* Clear bit in 32-bit register
*/
#define CLEAR_REGISTER32_BIT(reg,bit) \
_dat_critical_section_enter(); (reg) &= (~(0x1 << (bit))); \
_dat_critical_section_exit();
/*
* Set bit in 32-bit register
*/
#define SET_REGISTER32_BIT(reg,bit) \
_dat_critical_section_enter(); ((reg) |= (0x1 << (bit))); \
_dat_critical_section_exit();
/*
* Get bit from 32-bit register
*/
#define GET_REGISTER32_BIT(reg,bit) \
(( ((reg)<< (31 - (bit)) ) >> 31) == 0)?0:1
/*
* Commented out section in csl_dat2.c references these macros
*/
#define DAT_OPT_DEFAULT 0x0010000C /* Sets up OPT for TCC Interrupt enabling
* AB-sync transfers, static entry with TCC
* not yet set */
#define DAT_OPT_TCC_POS_MASK 0xC /* This mask marks the position of TCC in
* OPT
*/
#define DAT_INVALID_ID 0xFFFFFFFF /* Invalid ID */
#define DAT_NULL_LINK 0xFFFF /* Null link in the OPT */
/*
* Set Tcc in OPT
*/
#define DAT_OPT_TCC(opt,tcc) \
((unsigned int)(opt) | ((tcc)<<DAT_OPT_TCC_POS_MASK))
#endif /* _CSL_DAT2_EDMA3LLD_CONFIG_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -