Espresso 0.0.1d
This commit is contained in:
8
include/builtin_games/miner.h
Normal file
8
include/builtin_games/miner.h
Normal file
@ -0,0 +1,8 @@
|
||||
#ifndef _MINER_H
|
||||
#define _MINER_H
|
||||
|
||||
#include <types.h>
|
||||
|
||||
void miner_main(void);
|
||||
|
||||
#endif
|
@ -6,7 +6,10 @@
|
||||
typedef void (*irq_func_t)(void);
|
||||
|
||||
void irq_init(void);
|
||||
|
||||
void irq_handler(uint8_t irq_number);
|
||||
|
||||
void set_irq_handler(uint32_t num, irq_func_t* handler);
|
||||
void add_irq_handler(uint32_t num, irq_func_t* handler);
|
||||
|
||||
#endif
|
||||
|
@ -3,10 +3,20 @@
|
||||
|
||||
#include <types.h>
|
||||
|
||||
typedef enum {
|
||||
KEY_NONE = 0,
|
||||
KEY_ARROW_UP = 0xAA0,
|
||||
KEY_ARROW_DOWN,
|
||||
KEY_ARROW_LEFT,
|
||||
KEY_ARROW_RIGHT,
|
||||
/* Note: add more special keys here */
|
||||
} special_key;
|
||||
|
||||
void keyboard_init(void);
|
||||
void keyboard_handler(void);
|
||||
|
||||
char get_char(void);
|
||||
uint16_t get_key(void);
|
||||
char* get_string(void);
|
||||
|
||||
#endif
|
||||
|
6
include/ksymtab.h
Normal file
6
include/ksymtab.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef _KSYMTAB_H
|
||||
#define _KSYMTAB_H
|
||||
|
||||
#include <types.h>
|
||||
|
||||
#endif
|
@ -24,8 +24,8 @@ char lower(char c);
|
||||
char toupper(char c);
|
||||
char lower(char c);
|
||||
|
||||
void *memset(void *dst, char c, uint32_t n);
|
||||
void *memcpy(void *dst, const void *src, uint32_t n);
|
||||
void* memset(void *dst, char c, uint32_t n);
|
||||
void* memcpy(void *dst, const void *src, uint32_t n);
|
||||
int32_t memcmp(const void *s1, const void *s2, size_t n);
|
||||
void* memclr(void* m_start, size_t m_count);
|
||||
|
||||
|
@ -25,4 +25,6 @@ void terminal_scroll(void);
|
||||
|
||||
unsigned char terminal_get_shifted(unsigned char uc);
|
||||
|
||||
void terminal_set_cursor(uint16_t row, uint16_t column);
|
||||
|
||||
#endif
|
||||
|
@ -5,4 +5,11 @@
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef unsigned char uchar;
|
||||
|
||||
typedef uint8_t u8;
|
||||
typedef uint16_t u16;
|
||||
typedef uint32_t u32;
|
||||
typedef uint64_t u64;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user