-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmcu.h
executable file
·77 lines (63 loc) · 2.46 KB
/
mcu.h
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
70
71
72
73
74
75
76
77
///*****************************************
// Copyright (C) 2009-2014
// ITE Tech. Inc. All Rights Reserved
// Proprietary and Confidential
///*****************************************
// @file <mcu.h>
// @author [email protected]
// @date 2011/01/13
// @fileversion: HDMIRX_SAMPLE_2.09
//******************************************/
///////////////////////////////////////////////////////////////////////////////
// Include file
///////////////////////////////////////////////////////////////////////////////
#ifndef _MCU_H_
#define _MCU_H_
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/errno.h>
//#include <unistd.h>
#include "config.h"
///////////////////////////////////////////////////////////////////////////////
// Global Definition
///////////////////////////////////////////////////////////////////////////////
//#define DIVA
///////////////////////////////////////////////////////////////////////////////
// Type Definition
///////////////////////////////////////////////////////////////////////////////
#include "typedef.h"
#include "debug.h"
#include "io.h"
//#include "TimerProcess.h"
///////////////////////////////////////////////////////////////////////////////
// Constant Definition
///////////////////////////////////////////////////////////////////////////////
#define HDMIRXADR 0x90
#define RXDEV 0
#define ExtEDID 1
#define IntEDID 2
#define RXADR 0xB0
#define DELAY_TIME 1 // unit = 1 us;
#define IDLE_TIME 100 // unit = 1 ms;
#define HIGH 1
#define LOW 0
#define ACTIVE 1
#define DISABLE 0
#define DevNum 1
#define LOOPMS 20 // 20-> 5 , 030408, Clive
///////////////////////////////////////////////////////////////////////////////
// 8051 Definition
///////////////////////////////////////////////////////////////////////////////
#define _DP_6504_6902_Dongle_MegaWin DISABLE//1
#define _DP_6504_6902_Dongle_Myson ACTIVE//2
#define _DP_6506_Demo_V10_MegaWin DISABLE//3
#define _DP_6506_Demo_V12_MegaWin DISABLE//4
#define _DP_6512_V10_V20_MegaWin DISABLE//5
#define _DP_6512_V30_Myson DISABLE//6
#define _DP_6512_V40_STC DISABLE//7
#define _DP_6512FN_Myson DISABLE//8
#ifndef DISABLE_EDID_PARSING
#define _EDID_Parsing_
#endif
//#define delay1ms(ms) mdelay(ms)
#endif // _MCU_H_