Add missing files from git migration

This commit is contained in:
Curle 2020-07-05 22:58:37 +01:00
parent 97576bab02
commit 5892af699d
Signed by: TheCurle
GPG Key ID: 5942F13718443F79
5 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#ifndef KHEAP_H
#define KHEAP_H
#include <stddef.h>
#include <stdint.h>
uint8_t HeapEnabled = 0;
#endif

View File

@ -0,0 +1,11 @@
#ifndef _KERNEL_TTY_H
#define _KERNEL_TTY_H
#include <stddef.h>
void Term_Init(void);
void Term_PutChar(char c);
void Term_Write(const char* str, size_t len);
void Term_WriteStr(const char* str);
#endif

View File

@ -0,0 +1,34 @@
#ifndef VGA_TEXTMODE_H
#define VGA_TEXTMODE_H
#include <stdint.h>
enum VGA_COLOR {
VGA_COLOR_BLACK = 0,
VGA_COLOR_BLUE = 1,
VGA_COLOR_GREEN = 2,
VGA_COLOR_CYAN = 3,
VGA_COLOR_RED = 4,
VGA_COLOR_MAGENTA = 5,
VGA_COLOR_BROWN = 6,
VGA_COLOR_LIGHTGREY = 7,
VGA_COLOR_DARKGREY = 8,
VGA_COLOR_LIGHTBLUE = 9,
VGA_COLOR_LIGHTGREEN = 10,
VGA_COLOR_LIGHTCYAN = 11,
VGA_COLOR_PINK = 12,
VGA_COLOR_LIGHTMAGENTA = 13,
VGA_COLOR_LIGHTBROWN = 14,
VGA_COLOR_WHITE = 15,
};
static inline uint8_t VGACharColor(enum VGA_COLOR fg, enum VGA_COLOR bg) {
return fg | bg << 4;
}
static inline uint8_t VGAChar(unsigned char uc, uint8_t color) {
return (uint16_t) uc | (uint16_t) color << 8;
}
#endif

6
chroma/video/tty.d Normal file
View File

@ -0,0 +1,6 @@
chroma/video/tty.o: chroma/video/tty.c chroma/inc/kernel/video/tty.h \
chroma/inc/kernel/video/vga-textmode.h
chroma/inc/kernel/video/tty.h:
chroma/inc/kernel/video/vga-textmode.h:

BIN
sync.iso Normal file

Binary file not shown.