projects
/
ppcskel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simple changes to the stack
[ppcskel.git]
/
main.c
diff --git
a/main.c
b/main.c
index 62116920a79401ed597fd10b3727ec5797da5b1d..18cc42220e94461b00249626e61743d4e607d6ea 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-24,8
+24,8
@@
Copyright (C) 2009 John Kelley <wiidev@kelley.ca>
#include "video_low.h"
#include "input.h"
#include "console.h"
#include "video_low.h"
#include "input.h"
#include "console.h"
-#include "ohci.h"
#include "irq.h"
#include "irq.h"
+#include "usb/core/core.h"
#define MINIMUM_MINI_VERSION 0x00010001
#define MINIMUM_MINI_VERSION 0x00010001
@@
-85,15
+85,16
@@
int main(void)
dsp_reset();
irq_initialize();
dsp_reset();
irq_initialize();
- irq_enable(IRQ_OHCI0);
-
+ 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();
gecko_init();
input_init();
init_fb(vmode);
ipc_initialize();
ipc_slowping();
gecko_init();
input_init();
init_fb(vmode);
- ohci_init();
VIDEO_Init(vmode);
VIDEO_SetFrameBuffer(get_xfb());
VIDEO_Init(vmode);
VIDEO_SetFrameBuffer(get_xfb());
@@
-112,18
+113,13
@@
int main(void)
; // better ideas welcome!
}
; // better ideas welcome!
}
-
print_str_noscroll(112, 112, "ohai, world!\n"
);
+
usb_init(
);
+ /*
+ print_str_noscroll(112, 112, "ohai, world!\n");
testOTP();
testOTP();
-
printf("bye, world!\n");
printf("bye, world!\n");
-
- while(1) {
- // just to get sure we are still in this loop
- //wtf? _CPU_ISR_Enable() // don't know why this is needed...
- udelay(100000);
- printf("x");
- }
+ */
return 0;
}
return 0;
}