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

Subversion Repositories copyblaze

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

Go to most recent revision | 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);
 
}
 

Go to most recent revision | 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.