tape-kernel 1.0
a modular modern independent kernel
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1#ifndef TYPES_H
2#define TYPES_H
3
4//used with <how much> * <type>, e.g. 16 * KB is 16kb, just 16 would be 16 bytes
5#define KB 1024
6#define MB (1024 * 1024)
7#define GB (1024 * 1024 * 1024)
8
9//vga colors
10#define COLOR_BLACK 0x00
11#define COLOR_BLUE 0x01
12#define COLOR_GREEN 0x02
13#define COLOR_CYAN 0x03
14#define COLOR_RED 0x04
15#define COLOR_MAGENTA 0x05
16#define COLOR_BROWN 0x06
17#define COLOR_LIGHT_GRAY 0x07
18#define COLOR_DARK_GRAY 0x08
19#define COLOR_LIGHT_BLUE 0x09
20#define COLOR_LIGHT_GREEN 0x0A
21#define COLOR_LIGHT_CYAN 0x0B
22#define COLOR_LIGHT_RED 0x0C
23#define COLOR_LIGHT_MAGENTA 0x0D
24#define COLOR_YELLOW 0x0E
25#define COLOR_WHITE 0x0F
26
27//types:
28typedef unsigned char uint8_t;
29typedef unsigned short uint16_t;
30typedef unsigned int uint32_t;
31typedef unsigned long long uint64_t;
32typedef char int8_t;
33typedef short int16_t;
34typedef int int32_t;
35typedef long long int64_t;
36
37//null
38#define NULL ((void*)0)
39
40#define NORETURN //for nonreturning loops
41
42#endif
unsigned short uint16_t
Definition types.h:29
int int32_t
Definition types.h:34
unsigned int uint32_t
Definition types.h:30
long long int64_t
Definition types.h:35
short int16_t
Definition types.h:33
unsigned long long uint64_t
Definition types.h:31
unsigned char uint8_t
Definition types.h:28
char int8_t
Definition types.h:32