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

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [sw/] [dev/] [display.c] - Diff between revs 15 and 21

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 15 Rev 21
Line 36... Line 36...
//
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
//
//
//
#include "board.h"
#include "board.h"
 
#include "display.h"
 
 
static void     dispwait(void) {
static void     dispwait(void) {
        // Slow us down to the speed the display can handle
        // Slow us down to the speed the display can handle
        // We want to delay about 0x800 clocks.
        // We want to delay about 0x800 clocks.
        // Three instructions per loop,
        // Three instructions per loop,
Line 92... Line 93...
                dispwait();
                dispwait();
        }
        }
}
}
 
 
#ifdef  ZIPOS
#ifdef  ZIPOS
void    displaytask(void) {
#include "../zipos/ktraps.h"
 
#include "../zipos/kfildes.h"
 
void    display_task(void) {
        while(1) {
        while(1) {
                int     ch;
                int     ch;
                read(FILENO_STDIN, &ch, 1);
                read(FILENO_STDIN, &ch, 1);
                dispchar(ch);
                dispchar(ch);
        }
        }

powered by: WebSVN 2.1.0

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