|
tape-kernel 1.0
a modular modern independent kernel
|

Go to the source code of this file.
Functions | |
| uint8_t | __scntasci (uint8_t inpt, uint8_t shifted) |
| scntasci converts a keyboard scancode to an ascii character | |
| uint8_t | __gtchr (void) |
| listens for a character outside of loops from ports | |
| void | __kbstate (uint8_t *shift, uint8_t *caps) |
| kbstate exports the current keyboard modifier state | |
| void | __kbreset (void) |
| kbreset resets the keyboard modifier states | |
Variables | |
| static uint8_t | shift_pressed = 0 |
| static uint8_t | caps_lock = 0 |
| uint8_t __gtchr | ( | void | ) |
listens for a character outside of loops from ports
gtchr is a function that directly gets a key pressed from outside of rdln or loops
use of gtchr is done with
Definition at line 109 of file kb.c.
References caps_lock, inb, scntasci, and shift_pressed.
| void __kbreset | ( | void | ) |
kbreset resets the keyboard modifier states
kbreset is a function that clears the shift and caps lock states back to their defaults (both off)
using kbreset is done with
Definition at line 203 of file kb.c.
References caps_lock, and shift_pressed.
kbstate exports the current keyboard modifier state
kbstate is a function that writes the current shift and caps lock states into the provided pointers
| shift,a | pointer to store the shift state (1 = pressed) |
| caps,a | pointer to store the caps lock state (1 = enabled) |
using kbstate is done with
Definition at line 184 of file kb.c.
References caps_lock, and shift_pressed.
scntasci converts a keyboard scancode to an ascii character
scntasci is a function that translates ps/2 scancodes into ascii characters, applying shift and caps lock state for proper casing
| inpt,the | raw scancode byte from the keyboard |
| shifted,whether | shift is currently pressed (1) or not (0) |
using scntasci is done with
Definition at line 26 of file kb.c.
References caps_lock.
|
static |
Definition at line 7 of file kb.c.
Referenced by __gtchr(), __kbreset(), __kbstate(), and __scntasci().
|
static |
Definition at line 6 of file kb.c.
Referenced by __gtchr(), __kbreset(), and __kbstate().