Esempio n. 1
0
def kbd_work():
	while 1:
		if py8042.more_chars():
			ch = keyb.translate_scancode(py8042.get_scancode())
			if ch:
				stack.swap(ch)
		else:
			stack.swap(None, idl_task)
Esempio n. 2
0
def kbd_isr():
	while py8042.more_chars():
	    ch = keyb.translate_scancode(py8042.get_scancode())
	    if ch:
		prch(ch, '\015')
Esempio n. 3
0
def kbd_isr():
    ch = keyb.translate_scancode(py8042.get_scancode())
    if ch:
        global bufchar
        bufchar = ch
Esempio n. 4
0
def kbd_isr():
	ch = keyb.translate_scancode(py8042.get_scancode())
	if ch:
		global bufchar
		bufchar = ch
Esempio n. 5
0
def kbd_isr():
    while py8042.more_chars():
        ch = keyb.translate_scancode(py8042.get_scancode())
        if ch:
            prch(ch, '\015')