ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
///*****************************************
//  Copyright (C) 2009-2019
//  ITE Tech. Inc. All Rights Reserved
//  Proprietary and Confidential
///*****************************************
//   @file   <hdmitx.h>
//   @author Jau-Chih.Tseng@ite.com.tw
//   @date   2019/01/03
//   @fileversion: ITE_HDMITX_SAMPLE_3.27
//******************************************/
 
#ifndef _HDMITX_H_
#define _HDMITX_H_
 
#ifdef _MCU_8051_
   #include "mcu.h"
   #include "io.h"
   #include "utility.h"
 
#elif defined _WINDOWS_// not MCU
   #include <windows.h>
   #include <winioctl.h>
   #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
   #include <stdarg.h>
   #include "usbi2c.h"
   #include "io.h"
#else
   #include "io.h"
#endif
#include "debug.h"
#include "config.h"
#include "typedef.h"
#include "hdmitx_drv.h"
 
#define HDMITX_MAX_DEV_COUNT 1
 
 
///////////////////////////////////////////////////////////////////////
// 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
 
 
#define TIMER_LOOP_LEN 10
#define MS(x) (((x)+(TIMER_LOOP_LEN-1))/TIMER_LOOP_LEN); // for timer loop
 
// #define SUPPORT_AUDI_AudSWL 16 // Jeilin case.
#define SUPPORT_AUDI_AudSWL 24 // Jeilin case.
 
#if(SUPPORT_AUDI_AudSWL == 16)
   #define CHTSTS_SWCODE 0x02
#elif(SUPPORT_AUDI_AudSWL == 18)
   #define CHTSTS_SWCODE 0x04
#elif(SUPPORT_AUDI_AudSWL == 20)
   #define CHTSTS_SWCODE 0x03
#else
   #define CHTSTS_SWCODE 0x0B
#endif
 
#endif // _HDMITX_H_