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

Subversion Repositories mips789

[/] [mips789/] [branches/] [avendor/] [bench/] [LED/] [LED.c] - Rev 15

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

#include "..\..\clib\dvc_lib.h"
 
void main2()
{
    unsigned char i=0 ;
 
    while(1)
    { 
        dis_byte(i++);
        dly_us(100000);
        if (i%2)led1_on();else led1_off();
        if (i%2)led2_on();else led2_off();
        uart0_putc('!');
 
    }
}
 

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.