-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
48 lines (41 loc) · 1018 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* main.c
*
* Description: Defines the kernel main function.
*/
#include "globals.h"
#include "framebuffer.h"
#include "led.h"
#include "tty.h"
#include "io-x86.h"
#include "image_data.h"
#include "teletext.h"
#include "PS2.h"
#include "uart.h"
#include "stdio.h"
/* Main function for the kernel - never returns */
void kernel_main(void)
{
// int num_blinks = 5;
struct fb_screen_t hdmi;
main_screen = &hdmi;
// Initialize modules
uart_init();
uart_puts("Hello World!\n");
terminal_init(&hdmi);
terminal_writestring(main_screen, "Hello World!");
terminal_putchar(main_screen, '1');
printNum(1910);
// led_init();
// PS2_init();
// led_blink();
// led_blink();
// led_blink();
// Write a string to the terminal
// terminal_writestring("Hello World!\nThis is a new line. "
// "This is a tab\tAnd here's another.\tYay!!!!!!!\t:-)\n");
while(1) {
// terminal_putchar(PS2_readChar());
}
// Hang forever
while(TRUE);
}