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

Subversion Repositories mips789

[/] [mips789/] [branches/] [avendor/] [bench/] [LED/] [LED.c] - Blame information for rev 53

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

Line No. Rev Author Line
1 35 mcupro
/******************************************************************
2
 *                                                                *
3
 *    Author: Liwei                                               *
4
 *                                                                *
5
 *    This file is part of the "mips789" project.                 *
6
 *    Downloaded from:                                            *
7
 *    http://www.opencores.org/pdownloads.cgi/list/mips789        *
8
 *                                                                *
9
 *    If you encountered any problem, please contact me via       *
10
 *    Email:mcupro@opencores.org  or mcupro@163.com               *
11
 *                                                                *
12
 ******************************************************************/
13
 
14
 
15
 
16 15 mcupro
#include "..\..\clib\dvc_lib.h"
17
 
18
void main2()
19
{
20
    unsigned char i=0 ;
21
 
22
    while(1)
23
    {
24
        dis_byte(i++);
25 35 mcupro
    //   dly_us(100000);
26 15 mcupro
        if (i%2)led1_on();else led1_off();
27
        if (i%2)led2_on();else led2_off();
28 35 mcupro
    //uart0_putc('!');
29 15 mcupro
 
30
    }
31
}

powered by: WebSVN 2.1.0

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