OpenCores
URL https://opencores.org/ocsvn/z80soc/z80soc/trunk

Subversion Repositories z80soc

[/] [z80soc/] [trunk/] [V0.7.3/] [Software/] [C/] [include/] [z80soc.h] - Blame information for rev 46

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 46 rrred
/*
2
 *  z80soc.h
3
 *  XcodeProject
4
 *
5
 *  Created by Ronivon Costa on 11/7/10.
6
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
7
 *
8
 */
9
 
10
#define Success     0
11
#define Error       1
12
 
13
#define greenAlert  0
14
#define redAlert    1
15
 
16
#define DE1         0
17
#define S3E         1
18
#define DE2115      2
19
#define O3S         3
20
 
21
#define GLEDSPORT       0x01
22
#define RLEDSPORTA      0x02
23
#define RLEDSPORTB      0x03
24
#define CHEXLSB0        0x10
25
#define CHEXMSB0        0x11
26
#define CHEXLSB1        0x12
27
#define CHEXMSB1    0x13
28
#define LCDCTLPORT  0x15
29
#define DPSWPORTA       0x20
30
#define DPSWPORTB       0x21
31
#define PBUTTPORT       0x30
32
#define ROTARY          0x70
33
#define KBDPORT         0x80
34
#define VOUTPORT        0x90
35
#define VXPORT          0x91
36
#define VYPORT          0x92
37
 
38
extern void cls(void);
39
extern void writeMemory(unsigned int address, unsigned char byte);
40
extern void writeMemoryInt(unsigned int address, unsigned int value);
41
extern unsigned char readMemory(unsigned int address);
42
extern unsigned int readMemoryInt(unsigned int address);
43
extern void cursorxy(short int x, short int y);
44
extern unsigned char inkey(void);
45
extern void putchar(char c);
46
extern char getchar(void);
47
extern void greenLeds(unsigned char byte);
48
extern void redLedsA(unsigned char byte);
49
extern void redLedsB(unsigned char byte);
50
extern void hexlsb0(unsigned char byte);
51
extern void hexmsb0(unsigned char byte);
52
extern void hexlsb1(unsigned char byte);
53
extern void hexmsb1(unsigned char byte);
54
extern void lcdonoff(unsigned char byte);
55
extern void printlcd(unsigned char pos, char s[]);
56
extern unsigned char pushButton(void);
57
extern unsigned char dipSwitchA(void);
58
extern unsigned char dipSwitchB(void);
59
extern unsigned char rotaryButton(void);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.