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

Subversion Repositories mips789

[/] [mips789/] [branches/] [avendor/] [bench/] [LED/] [LED.c] - Diff between revs 35 and 51

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 35 Rev 51
/******************************************************************
/******************************************************************
 *                                                                *
 *                                                                *
 *    Author: Liwei                                               *
 *    Author: Liwei                                               *
 *                                                                *
 *                                                                *
 *    This file is part of the "mips789" project.                 *
 *    This file is part of the "mips789" project.                 *
 *    Downloaded from:                                            *
 *    Downloaded from:                                            *
 *    http://www.opencores.org/pdownloads.cgi/list/mips789        *
 *    http://www.opencores.org/pdownloads.cgi/list/mips789        *
 *                                                                *
 *                                                                *
 *    If you encountered any problem, please contact me via       *
 *    If you encountered any problem, please contact me via       *
 *    Email:mcupro@opencores.org  or mcupro@163.com               *
 *    Email:mcupro@opencores.org  or mcupro@163.com               *
 *                                                                *
 *                                                                *
 ******************************************************************/
 ******************************************************************/
 
 
 
 
 
 
#include "..\..\clib\dvc_lib.h"
#include "..\..\clib\dvc_lib.h"
 
 
void main2()
void main2()
{
{
    unsigned char i=0 ;
    unsigned char i=0 ;
 
 
    while(1)
    while(1)
    {
    {
        dis_byte(i++);
        dis_byte(i++);
    //   dly_us(100000);
    //   dly_us(100000);
        if (i%2)led1_on();else led1_off();
        if (i%2)led1_on();else led1_off();
        if (i%2)led2_on();else led2_off();
        if (i%2)led2_on();else led2_off();
    //uart0_putc('!');
    //uart0_putc('!');
 
 
    }
    }
}
}
 
 

powered by: WebSVN 2.1.0

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