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

Subversion Repositories pss

[/] [pss/] [trunk/] [pss/] [SW/] [onboard/] [SWnLED/] [SWnLED.c] - Rev 5

Go to most recent revision | Compare with Previous | Blame | View Log

/*
 * Small hello world example, does not use printf()
 */
//#include <stdio.h>
#define IO_GPR          (*(volatile unsigned int *)(0x8A000000))
 
int main()
{
    int value;
 
    while(1)
    {
        value = IO_GPR;
        IO_GPR = ~value;
    }
    return 1;
 
}
 

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.