-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdsk6713.h
74 lines (56 loc) · 1.57 KB
/
dsk6713.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
/*
* Copyright 2002 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== dsk6713.h ========
*
* This files contains DSK6713 board specific I/O registers
* define for the CPLD.
*/
#ifndef DSK6713_
#define DSK6713_
#ifdef __cplusplus
extern "C" {
#endif
#include <csl.h>
/*
* Note: Bit definitions for each register field
* needs to be supplied here for the CPLD
* and other board periperals.
*/
/* Compatability definitions */
#define NULL 0
/* CPLD address definitions */
#define DSK6713_CPLD_BASE 0x90080000
/* CPLD Register Indices */
#define DSK6713_USER_REG 0
#define DSK6713_DC_REG 1
#define DSK6713_VERSION 4
#define DSK6713_MISC 6
/* CPLD Register Bits */
#define DC_DET 0x80
#define DC_STAT1 0x20
#define DC_STAT0 0x10
#define DC_CNTL1 0x02
#define DC_CNTL0 0x01
#define TIN1SEL 0x08
#define TIN0SEL 0x04
#define MCBSP2SEL 0x02
#define MCBSP1SEL 0x01
/* Initialize all board APIs */
void DSK6713_init();
/* Read an 8-bit value from a CPLD register */
Uint8 DSK6713_rget(Int16 regnum);
/* Write an 8-bit value to a CPLD register */
void DSK6713_rset(Int16 regnum, Uint8 regval);
/* Spin in a delay loop for delay iterations */
void DSK6713_wait(Uint32 delay);
/* Spin in a delay loop for delay microseconds */
void DSK6713_waitusec(Uint32 delay);
/* Get the DSK version */
Int16 DSK6713_getVersion();
#ifdef __cplusplus
}
#endif
#endif