no-OS
Macros | Enumerations | Functions
cf_hdmi.c File Reference
#include <stdio.h>
#include "xil_io.h"
#include "xparameters.h"
#include "cf_hdmi.h"
#include "cf_hdmi_demo.h"
#include "xil_cache.h"
#include "axi_dmac.h"
#include "clk_axi_clkgen.h"
Include dependency graph for cf_hdmi.c:

Macros

#define MIN(x, y)   (x < y ? x : y)
 
#define MAX(x, y)   (x > y ? x : y)
 
#define NO_OS_DIV_ROUND_UP(x, y)   (((x) + (y) - 1) / (y))
 
#define CLAMP(val, min, max)   (val < min ? min : (val > max ? max :val))
 
#define ABS(x)   (x < 0 ? -x : x)
 

Enumerations

enum  detailedTimingElement {
  PIXEL_CLOCK,
  H_ACTIVE_TIME,
  H_BLANKING_TIME,
  H_SYNC_OFFSET,
  H_SYNC_WIDTH_PULSE,
  V_ACTIVE_TIME,
  V_BLANKING_TIME,
  V_SYNC_OFFSET,
  V_SYNC_WIDTH_PULSE
}
 

Functions

void DDRVideoWr (unsigned short horizontalActiveTime, unsigned short verticalActiveTime)
 DDRVideoWr. More...
 
void DDRAudioWr (void)
 DDRAudioWr. More...
 
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...
 

Detailed Description

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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$

Macro Definition Documentation

◆ ABS

#define ABS (   x)    (x < 0 ? -x : x)

◆ CLAMP

#define CLAMP (   val,
  min,
  max 
)    (val < min ? min : (val > max ? max :val))

◆ MAX

#define MAX (   x,
 
)    (x > y ? x : y)

◆ MIN

#define MIN (   x,
 
)    (x < y ? x : y)

◆ NO_OS_DIV_ROUND_UP

#define NO_OS_DIV_ROUND_UP (   x,
 
)    (((x) + (y) - 1) / (y))

Enumeration Type Documentation

◆ detailedTimingElement

Enumerator
PIXEL_CLOCK 
H_ACTIVE_TIME 
H_BLANKING_TIME 
H_SYNC_OFFSET 
H_SYNC_WIDTH_PULSE 
V_ACTIVE_TIME 
V_BLANKING_TIME 
V_SYNC_OFFSET 
V_SYNC_WIDTH_PULSE 

Function Documentation

◆ AudioClick()

void AudioClick ( void  )

AudioClick.

◆ DDRAudioWr()

void DDRAudioWr ( void  )

DDRAudioWr.

Here is the caller graph for this function:

◆ DDRVideoWr()

void DDRVideoWr ( unsigned short  horizontalActiveTime,
unsigned short  verticalActiveTime 
)

DDRVideoWr.

Here is the caller graph for this function:

◆ InitHdmiAudioPcore()

void InitHdmiAudioPcore ( void  )

InitHdmiAudioPcore.

◆ InitHdmiVideoPcore()

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.

◆ SetVideoResolution()

void SetVideoResolution ( struct axi_clkgen clkgen,
unsigned char  resolution 
)

SetVideoResolution.