mirror of
https://github.com/marqs85/ossc
synced 2026-11-20 21:34:29 +03:00
restructure firmware to be more inline with pro
This commit is contained in:
1 parent
c572fb651a
commit
8f779136fa
49 files changed
+36
-34
No files matched your search
@@ -0,0 +1,121 @@
|
||||
#ifndef _HDMITX_H_
|
||||
#define _HDMITX_H_
|
||||
|
||||
#ifdef EXTERN_HDCPROM
|
||||
#pragma message("Defined EXTERN_HDCPROM")
|
||||
#endif // EXTERN_HDCPROM
|
||||
|
||||
#define SUPPORT_EDID
|
||||
//#define SUPPORT_HDCP
|
||||
#define SUPPORT_INPUTRGB
|
||||
//#define SUPPORT_INPUTYUV444
|
||||
//#define SUPPORT_INPUTYUV422
|
||||
//#define SUPPORT_SYNCEMBEDDED
|
||||
//#define SUPPORT_DEGEN
|
||||
//#define SUPPORT_INPUTYUV // richard add
|
||||
//#define INVERT_VID_LATCHEDGE //latch at falling edge
|
||||
|
||||
|
||||
#ifdef SUPPORT_SYNCEMBEDDED
|
||||
#pragma message("defined SUPPORT_SYNCEMBEDDED for Sync Embedded timing input or CCIR656 input.")
|
||||
#endif
|
||||
|
||||
#ifndef _MCU_ // DSSSHA need large computation data rather than 8051 supported.
|
||||
#define SUPPORT_DSSSHA
|
||||
#endif
|
||||
|
||||
#if defined(SUPPORT_INPUTYUV444) || defined(SUPPORT_INPUTYUV422)
|
||||
#define SUPPORT_INPUTYUV
|
||||
#endif
|
||||
|
||||
/*#ifdef _MCU_
|
||||
#include "mcu.h"
|
||||
#else // not MCU
|
||||
#include <windows.h>
|
||||
#include <winioctl.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include "ioaccess.h"
|
||||
#include "install.h"
|
||||
#include "pc.h"
|
||||
#endif // MCU*/
|
||||
|
||||
#include "typedef.h"
|
||||
#include "HDMI_COMMON.h"
|
||||
/*typedef unsigned char BYTE;
|
||||
#define _CODE const
|
||||
#define SYS_STATUS unsigned int
|
||||
#define TRUE 1
|
||||
#define FALSE 0*/
|
||||
//#define NULL 0
|
||||
|
||||
//typedef unsigned char bool;
|
||||
typedef unsigned char bool;
|
||||
#include "sysconfig.h"
|
||||
|
||||
// Hardwired to CPU reset
|
||||
#define HDMITX_Reset(x)
|
||||
|
||||
#ifndef SUPPORT_HDCP
|
||||
static SYS_STATUS
|
||||
HDCP_Authenticate()
|
||||
{
|
||||
return ER_SUCCESS;
|
||||
}
|
||||
|
||||
static void
|
||||
HDCP_ResetAuth()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
HDCP_ResumeAuthentication()
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
void DelayMS(unsigned int ms);
|
||||
|
||||
//#include "edid.h"
|
||||
// #include "dss_sha.h"
|
||||
#include "it6613_drv.h"
|
||||
|
||||
#define HDMITX_INSTANCE_MAX 1
|
||||
|
||||
#define SIZEOF_CSCMTX 18
|
||||
#define SIZEOF_CSCGAIN 6
|
||||
#define SIZEOF_CSCOFFSET 3
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// Output Mode Type
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define RES_ASPEC_4x3 0
|
||||
#define RES_ASPEC_16x9 1
|
||||
#define F_MODE_REPT_NO 0
|
||||
#define F_MODE_REPT_TWICE 1
|
||||
#define F_MODE_REPT_QUATRO 3
|
||||
#define F_MODE_CSC_ITU601 0
|
||||
#define F_MODE_CSC_ITU709 1
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// ROM OFFSET
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
#define ROMOFF_INT_TYPE 0
|
||||
#define ROMOFF_INPUT_VIDEO_TYPE 1
|
||||
#define ROMOFF_OUTPUT_AUDIO_MODE 8
|
||||
#define ROMOFF_AUDIO_CH_SWAP 9
|
||||
|
||||
|
||||
|
||||
#define TIMER_LOOP_LEN 10
|
||||
#define MS(x) (((x)+(TIMER_LOOP_LEN-1))/TIMER_LOOP_LEN) ; // for timer loop
|
||||
|
||||
|
||||
|
||||
#endif // _HDMITX_H_
|
||||
|
||||
Reference in new issue
Block a user