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

Subversion Repositories z80soc

[/] [z80soc/] [trunk/] [V0.7.3/] [Software/] [C/] [testsys/] [de2115.c] - Blame information for rev 46

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 46 rrred
/*
2
 *  de1.c
3
 *  XcodeProject
4
 *
5
 *  Created by Ronivon Costa on 11/16/10.
6
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
7
 *
8
 */
9
#include <de2115.h>
10
#include <z80soc.h>
11
#include <string.h>
12
 
13
void redLedsA(unsigned char byte) {
14
        __sfr __at RLEDSPORTA static RLEDIOPort;
15
        RLEDIOPort = byte;
16
}
17
 
18
void redLedsB(unsigned char byte) {
19
    __sfr __at RLEDSPORTB static RLEDIOPort;
20
    RLEDIOPort = byte;
21
}
22
 
23
void hexlsb0(unsigned char byte) {
24
        __sfr __at CHEXLSB0 static HEX01;
25
        HEX01 = byte;
26
}
27
 
28
void hexmsb0(unsigned char byte) {
29
        __sfr __at CHEXMSB0 static HEX23;
30
        HEX23 = byte;
31
}
32
 
33
void hexlsb1(unsigned char byte) {
34
    __sfr __at CHEXLSB1 static HEX01;
35
    HEX01 = byte;
36
}
37
 
38
void hexmsb1(unsigned char byte) {
39
    __sfr __at CHEXMSB1 static HEX23;
40
    HEX23 = byte;
41
}
42
 
43
unsigned char dipSwitchB(void) {
44
    __sfr __at DPSWPORTB static SW;
45
    return SW;
46
}
47
 
48
void lcdonoff(unsigned char byte) {
49
    __sfr __at LCDCTLPORT static LCDOnOffPort;
50
    LCDOnOffPort = byte;
51
}
52
 
53
/*
54
void printlcd(short int pos, char s[]) {
55
    short int i;
56
    unsigned int lcdmem = readMemoryInt(0x57DC) + pos;
57
    for (i = 0;i < strlen(s); i++) {
58
        writeMemory(lcdmem + i, s[i]);
59
    }
60
}
61
 */

powered by: WebSVN 2.1.0

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