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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [pbcc/] [testINOUT/] [testINOUT.c] - Blame information for rev 54

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 54 ameziti
// test INPUT/OUTPUT instrukci
2
volatile char gl = 5;
3
 
4
// definice portu
5
extern char PBLAZEPORT[];
6
 
7
void fun(char *a)
8
{
9
    char i;
10
    for(i = 0; i < *a; i++) {
11
        PBLAZEPORT[i] = gl;
12
    }
13
}
14
 
15
void main()
16
{
17
    char a = PBLAZEPORT[5];
18
        fun(&a);
19
 
20
}

powered by: WebSVN 2.1.0

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