no-OS
|
Go to the source code of this file.
Enumerations | |
enum | videoResolution { RESOLUTION_640x480, RESOLUTION_800x600, RESOLUTION_1024x768, RESOLUTION_1280x720, RESOLUTION_1360x768, RESOLUTION_1600x900, RESOLUTION_1920x1080 } |
Functions | |
void | InitHdmiVideoPcore (unsigned short horizontalActiveTime, unsigned short horizontalBlankingTime, unsigned short horizontalSyncOffset, unsigned short horizontalSyncPulseWidth, unsigned short verticalActiveTime, unsigned short verticalBlankingTime, unsigned short verticalSyncOffset, unsigned short verticalSyncPulseWidth) |
InitHdmiVideoPcore. More... | |
void | SetVideoResolution (struct axi_clkgen *clkgen, unsigned char resolution) |
SetVideoResolution. More... | |
void | InitHdmiAudioPcore (void) |
InitHdmiAudioPcore. More... | |
void | AudioClick (void) |
AudioClick. More... | |
Copyright 2013(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SVN Revision: $WCREV$
#define A_FREQ 1400 |
#define A_SAMPLE_FREQ 48000 |
#define AUDIO_BASEADDR DDR_BASEADDR + 0x1000000 |
#define AUDIO_LENGTH (A_SAMPLE_FREQ/A_FREQ) |
#define AXI_CLKGEN_V2_DRP_CNTRL_READ (1 << 28) |
#define AXI_CLKGEN_V2_DRP_CNTRL_SEL (1 << 29) |
#define AXI_CLKGEN_V2_DRP_STATUS_BUSY (1 << 16) |
#define AXI_CLKGEN_V2_REG_DRP_CNTRL 0x70 |
#define AXI_CLKGEN_V2_REG_DRP_STATUS 0x74 |
#define AXI_CLKGEN_V2_REG_RESET 0x40 |
#define AXI_CLKGEN_V2_RESET_ENABLE (1 << 0) |
#define AXI_CLKGEN_V2_RESET_MMCM_ENABLE (1 << 1) |
#define AXI_HDMI_REG_COLORPATTERN 0x04c |
#define AXI_HDMI_REG_CTRL 0x044 |
#define AXI_HDMI_REG_HTIMING1 0x400 |
#define AXI_HDMI_REG_HTIMING2 0x404 |
#define AXI_HDMI_REG_HTIMING3 0x408 |
#define AXI_HDMI_REG_RESET 0x040 |
#define AXI_HDMI_REG_SOURCE_SEL 0x048 |
#define AXI_HDMI_REG_STATUS 0x05c |
#define AXI_HDMI_REG_TPM_STATUS 0x064 |
#define AXI_HDMI_REG_VDMA_STATUS 0x060 |
#define AXI_HDMI_REG_VTIMING1 0x440 |
#define AXI_HDMI_REG_VTIMING2 0x444 |
#define AXI_HDMI_REG_VTIMING3 0x448 |
#define AXI_VDMA_REG_DMA_CTRL 0x00 |
#define AXI_VDMA_REG_FRMDLY_STRIDE 0x58 |
#define AXI_VDMA_REG_H_SIZE 0x54 |
#define AXI_VDMA_REG_START_1 0x5C |
#define AXI_VDMA_REG_START_2 0x60 |
#define AXI_VDMA_REG_START_3 0x64 |
#define AXI_VDMA_REG_V_SIZE 0x50 |
#define CFA_BASEADDR XPAR_AXI_SPDIF_TX_CORE_BASEADDR |
#define CFV_BASEADDR XPAR_AXI_HDMI_CORE_BASEADDR |
#define MMCM_REG_CLK_DIV 0x16 |
#define MMCM_REG_CLK_FB1 0x14 |
#define MMCM_REG_CLK_FB2 0x15 |
#define MMCM_REG_CLKOUT0_1 0x08 |
#define MMCM_REG_CLKOUT0_2 0x09 |
#define MMCM_REG_FILTER1 0x4e |
#define MMCM_REG_FILTER2 0x4f |
#define MMCM_REG_LOCK1 0x18 |
#define MMCM_REG_LOCK2 0x19 |
#define MMCM_REG_LOCK3 0x1a |
#define VDMA_BASEADDR XPAR_AXI_HDMI_DMA_BASEADDR |
#define VIDEO_BASEADDR DDR_BASEADDR + 0x2000000 |
enum videoResolution |
void AudioClick | ( | void | ) |
AudioClick.
void InitHdmiAudioPcore | ( | void | ) |
InitHdmiAudioPcore.
void InitHdmiVideoPcore | ( | unsigned short | horizontalActiveTime, |
unsigned short | horizontalBlankingTime, | ||
unsigned short | horizontalSyncOffset, | ||
unsigned short | horizontalSyncPulseWidth, | ||
unsigned short | verticalActiveTime, | ||
unsigned short | verticalBlankingTime, | ||
unsigned short | verticalSyncOffset, | ||
unsigned short | verticalSyncPulseWidth | ||
) |
InitHdmiVideoPcore.
void SetVideoResolution | ( | struct axi_clkgen * | clkgen, |
unsigned char | resolution | ||
) |
SetVideoResolution.