#include "typedefs.h"
#include "sys.h"
#include "debug.h"
#include "keyboard.h"
#include "printer.h"
Go to the source code of this file.
Functions | |
int | gets (char *str, const size_t len) |
Read at most len-1 characters from keyboard, reading is terminated by ' ' character. | |
int | getc_try (void) |
Check for character in the keyboard buffer availible. | |
int | getc (void) |
Reads char from keyboard buffer, else blocks calling thread and waits for keypress. | |
unsigned int | putc (const char chr) |
Put one char to console. | |
unsigned int | puts (const char *str) |
Put null terminated string to console. | |
unsigned int | printk (const char *format,...) |
Put formated string to the console. | |
unsigned int | printk_unwind (const char *format, void *arguments) |
Put formated string to the console. | |
Variables | |
mutex_t | keyboard_mtx |
cond_t | keyboard_cnd |
int getc | ( | void | ) |
Reads char from keyboard buffer, else blocks calling thread and waits for keypress.
int getc_try | ( | void | ) |
Check for character in the keyboard buffer availible.
int gets | ( | char * | str, | |
const size_t | len | |||
) |
Read at most len-1 characters from keyboard, reading is terminated by '
' character.
str | - null terminated returned string | |
len | - maximum length of str buffer |
unsigned int printk | ( | const char * | format, | |
... | ||||
) |
Put formated string to the console.
format | - format null terminated format string | |
... | - arguments c for characters, s for strings, d, u, i for integers, x for integers in hexadecimal format, p pointers without modifier for aligning and valid digits. |
unsigned int printk_unwind | ( | const char * | format, | |
void * | arguments | |||
) |
Put formated string to the console.
format | - formated null terminated format string | |
arguments | - void pointer to arguments stored in the memory "in the line" |
unsigned int putc | ( | const char | chr | ) |
Put one char to console.
chr | - char to put |
unsigned int puts | ( | const char * | str | ) |
Put null terminated string to console.
str | - pointer to null terminatted string |
keyboard pool
keyboard lock