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:
28
typedef
unsigned
char
uint8_t
;
29
typedef
unsigned
short
uint16_t
;
30
typedef
unsigned
int
uint32_t
;
31
typedef
unsigned
long
long
uint64_t
;
32
typedef
char
int8_t
;
33
typedef
short
int16_t
;
34
typedef
int
int32_t
;
35
typedef
long
long
int64_t
;
36
37
//null
38
#define NULL ((void*)0)
39
40
#define NORETURN
//for nonreturning loops
41
42
#endif
uint16_t
unsigned short uint16_t
Definition
types.h:29
int32_t
int int32_t
Definition
types.h:34
uint32_t
unsigned int uint32_t
Definition
types.h:30
int64_t
long long int64_t
Definition
types.h:35
int16_t
short int16_t
Definition
types.h:33
uint64_t
unsigned long long uint64_t
Definition
types.h:31
uint8_t
unsigned char uint8_t
Definition
types.h:28
int8_t
char int8_t
Definition
types.h:32
src
lib
types.h
Generated by
1.16.1