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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [pbcc/] [testINOUT/] [testINOUT.c] - Rev 54

Compare with Previous | Blame | View Log

// test INPUT/OUTPUT instrukci
volatile char gl = 5;
 
// definice portu
extern char PBLAZEPORT[];
 
void fun(char *a)
{
    char i;
    for(i = 0; i < *a; i++) {
        PBLAZEPORT[i] = gl;
    }
}
 
void main()
{
    char a = PBLAZEPORT[5];
	fun(&a);
 
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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