📄 adav801_test.h
字号:
/*********************************************************************************
Copyright(c) 2005 Analog Devices, Inc. All Rights Reserved.
This software is proprietary and confidential. By using this software you agree
to the terms of the associated Analog Devices License Agreement.
Description:
This is the source code for the Blackfin EZ-Audio Power On Self Test
(POST).
*********************************************************************************/
#ifndef _ADAV801_TEST_H_
#define _ADAV801_TEST_H_
//--------------------------------------------------------------------------//
// Header files //
//--------------------------------------------------------------------------//
#include <sys\exception.h>
#include <cdefBF533.h>
#include "bitDefs.h"
//--------------------------------------------------------------------------//
// Symbolic constants //
//--------------------------------------------------------------------------//
// names for slots in ADAV801 audio frame
#define INTERNAL_SPDIF_TX_L0 0
#define INTERNAL_SPDIF_RX_R0 2
#define INTERNAL_SPDIF_TX_R0 2
#define INTERNAL_SPDIF_RX_L0 0
// SPI transfer mode
#define TIMOD_DMA_TX 0x0003
// SPORT0 word length
#define SLEN_24 0x0017
// DMA flow mode
#define FLOW_1 0x1000
//--------------------------------------------------------------------------//
// Global variables //
//--------------------------------------------------------------------------//
extern volatile int g_iRxBufferSPORT0[];
extern volatile int g_iTxBufferSPORT0[];
//--------------------------------------------------------------------------//
// Prototypes //
//--------------------------------------------------------------------------//
// in file Initialize.c
void InitADAV801(void);
void Init_Sport0(void);
void Init_Sport0_DMA(void);
void Init_Sport0_Interrupts(void);
void Enable_Sport0_DMA(void);
// in file ISRs.c
EX_INTERRUPT_HANDLER(Sport0_RX_ISR);
#endif //#ifndef _ADAV801_TEST_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -