oh, hello bluetooth dongle :D
[ppcskel.git] / main.c
diff --git a/main.c b/main.c
index acd97174cd0e328a07f8d60d821cfb1022430db7..e9dc2079128a0a34cba289735a14b2d3967a224d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -24,6 +24,9 @@ Copyright (C) 2009              John Kelley <wiidev@kelley.ca>
 #include "video_low.h"
 #include "input.h"
 #include "console.h"
+#include "irq.h"
+#include "usb/core/core.h"
+#include "hollywood.h"
 
 #define MINIMUM_MINI_VERSION 0x00010001
 
@@ -82,8 +85,10 @@ int main(void)
        exception_init();
        dsp_reset();
 
-       // clear interrupt mask
-       write32(0x0c003004, 0);
+       irq_initialize();
+       irq_bw_enable(BW_PI_IRQ_RESET);
+       irq_bw_enable(BW_PI_IRQ_HW); //hollywood pic
+       irq_hw_enable(IRQ_OHCI0);
 
        ipc_initialize();
        ipc_slowping();
@@ -109,11 +114,14 @@ int main(void)
                        ; // better ideas welcome!
        }
 
-    print_str_noscroll(112, 112, "ohai, world!\n");
+       usb_init(OHCI0_REG_BASE);
+       usb_init(OHCI1_REG_BASE);
 
+       /*
+    print_str_noscroll(112, 112, "ohai, world!\n");
        testOTP();
-
        printf("bye, world!\n");
+       */
 
        return 0;
 }