aboutsummaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-24 14:30:23 -0800
committerChristian Cunningham <cc@localhost>2021-12-24 14:30:23 -0800
commitd44bf5acb015edaeacc022f423bae4743b868f53 (patch)
tree74335cc27c6b8795ccca970c42ccf4e0ae479a4f /src/sys
parent6ddd6fe9d945bbd5d03bf61080ac5f83441cb392 (diff)
Save USB for later
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/core.c7
-rw-r--r--src/sys/core.h5
2 files changed, 0 insertions, 12 deletions
diff --git a/src/sys/core.c b/src/sys/core.c
index 78d95b9..178b5f8 100644
--- a/src/sys/core.c
+++ b/src/sys/core.c
@@ -1,6 +1,5 @@
#include "../cpu/irq.h"
#include "../drivers/uart.h"
-#include "../drivers/usb.h"
#include "../graphics/lfb.h"
#include "../graphics/drawer.h"
#include "../lib/mem.h"
@@ -28,10 +27,6 @@ void sysinit() {
// Enable UART GPU IRQ
store32(1<<25, IRQ_ENABLE2);
- // Enable USB Interrupt
- store32(1<<9, IRQ_ENABLE1);
- usbhost_start();
-
// Enable Timer
// As an IRQ
store32(1<<0, IRQ_BASIC_ENABLE);
@@ -133,6 +128,4 @@ void postinit() {
}
write_string(&g_Drawer, "\n> ");
-
- usb_trig();
}
diff --git a/src/sys/core.h b/src/sys/core.h
index 1a85537..74bac74 100644
--- a/src/sys/core.h
+++ b/src/sys/core.h
@@ -113,11 +113,6 @@ enum
PM_RSTC_RESET = 0x00000102,
};
-#define bool unsigned char
-#define uint8_t unsigned char
-#define uint16_t unsigned short
-#define uint32_t unsigned long
-
void sysinit();
void postinit();