示例#1
0
文件: main.c 项目: EtchedPixels/FUZIX
/* On idle we spin checking for the terminals. Gives us more responsiveness
   for the polled ports */
void platform_idle(void)
{
	irqflags_t irq = di();
	tty_poll();
	sync_clock();
	irqrestore(irq);
}
示例#2
0
文件: main.c 项目: EtchedPixels/FUZIX
/* On idle we spin checking for the terminals. Gives us more responsiveness
   for the polled ports */
void platform_idle(void)
{
  /* We don't want an idle poll and IRQ driven tty poll at the same moment */
  irqflags_t irq = di();
  tty_poll(); 
  irqrestore(irq);
}
示例#3
0
void platform_interrupt(void)
{
	uint8_t t = *timer;
	tty_poll();
	while(t--) {
		timer_interrupt();
	}
}
示例#4
0
文件: devtty.c 项目: davidgiven/FUZIX
void platform_interrupt(void)
{
	uint8_t t = peek(0x10);
	tty_poll();
	while(t--) {
		timer_interrupt();
	}
}
示例#5
0
文件: main.c 项目: EtchedPixels/FUZIX
void platform_interrupt(void)
{
	/* We don't have interrupts for the keyboard */
	kbd_poll();
	tty_poll();
	if (clk_irq) {
		if (clk_stat & 0x08) {	/* Check 4 or 8 - need datasheet */
			/* Not ideal but we need to work out how to handle
			   the different clocks gracefully */
			timer_interrupt();
			timer_interrupt();
			timer_interrupt();
			timer_interrupt();
			/* Do we need to read again ? */
		}
	}
}
示例#6
0
文件: main.c 项目: EtchedPixels/FUZIX
void platform_interrupt(void)
{
 tty_poll();
 timer_interrupt();
 devfd_spindown();
}
示例#7
0
void platform_idle(void)
{
    irqflags_t flags = di();
    tty_poll();
    irqrestore(flags);
}