[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
input.h File Reference
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for input.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void input_init (void)
 
void input_putc (uint8_t)
 
uint8_t input_getc (void)
 
bool input_full (void)
 

Function Documentation

◆ input_full()

bool input_full ( void  )
45 {
47 return intq_full (&buffer);
48}
#define ASSERT(CONDITION)
Definition: debug.h:30
static struct intq buffer
Definition: input.c:7
@ INTR_OFF
Definition: interrupt.h:9
enum intr_level intr_get_level(void)
Definition: interrupt.c:115
bool intq_full(const struct intq *q)
Definition: intq.c:26
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_getc()

uint8_t input_getc ( void  )
29 {
30 enum intr_level old_level;
31 uint8_t key;
32
33 old_level = intr_disable ();
34 key = intq_getc (&buffer);
36 intr_set_level (old_level);
37
38 return key;
39}
enum intr_level intr_set_level(enum intr_level)
Definition: interrupt.c:130
enum intr_level intr_disable(void)
Definition: interrupt.c:151
intr_level
Definition: interrupt.h:8
uint8_t intq_getc(struct intq *q)
Definition: intq.c:36
void serial_notify(void)
Definition: serial.c:140
unsigned char uint8_t
Definition: stdint.h:20
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_init()

void input_init ( void  )
11 {
13}
void intq_init(struct intq *q)
Definition: intq.c:11
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_putc()

void input_putc ( uint8_t  key)
18 {
21
22 intq_putc (&buffer, key);
24}
void intq_putc(struct intq *q, uint8_t byte)
Definition: intq.c:58
Here is the call graph for this function:
Here is the caller graph for this function: