Kintsugi OS 0.5.0
x86 Monolithic OS
Loading...
Searching...
No Matches
keyboard.c File Reference
#include "keyboard.h"
#include "../cpu/isr.h"
#include "../kklibc/function.h"
#include "lowlevel_io.h"

Macros

#define EVENT_COUNT   128
 

Functions

static void enqueue (int key)
 
static void keyboard_callback (registers_t registers)
 
int keyboard_read_event (void)
 
void init_keyboard (void)
 

Variables

static int events [EVENT_COUNT]
 
static volatile u32 head
 
static volatile u32 tail
 
static u8 shifts
 
static u8 caps
 
static u8 control
 
static u8 extended
 
static const char lower [] = "??1234567890-=??qwertyuiop[]??asdfghjkl;'`?\\zxcvbnm,./??? "
 
static const char upper [] = "?" "?!@#$%^&*()_+??QWERTYUIOP{}??ASDFGHJKL:\"~?|ZXCVBNM<>???? "
 

Macro Definition Documentation

◆ EVENT_COUNT

#define EVENT_COUNT   128

Function Documentation

◆ enqueue()

static void enqueue ( int  key)
static

◆ init_keyboard()

void init_keyboard ( void  )

◆ keyboard_callback()

static void keyboard_callback ( registers_t  registers)
static

◆ keyboard_read_event()

int keyboard_read_event ( void  )

Variable Documentation

◆ caps

u8 caps
static

◆ control

u8 control
static

◆ events

int events[EVENT_COUNT]
static

◆ extended

u8 extended
static

◆ head

volatile u32 head
static

◆ lower

const char lower[] = "??1234567890-=??qwertyuiop[]??asdfghjkl;'`?\\zxcvbnm,./??? "
static

◆ shifts

u8 shifts
static

◆ tail

volatile u32 tail
static

◆ upper

const char upper[] = "?" "?!@#$%^&*()_+??QWERTYUIOP{}??ASDFGHJKL:\"~?|ZXCVBNM<>???? "
static