Skip to content

Commit

Permalink
disable USB by default
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Nov 19, 2018
1 parent 2ee652d commit 38e93ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions kern/driver/sl811.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include "usb.h"
#include "usb_hid.h"

#ifdef SL811

static bool device_present;
#define printf(...) kprintf(__VA_ARGS__)

Expand Down Expand Up @@ -759,3 +761,7 @@ int main(int argc, char **argv) {
}

#endif

#else
void usb_sl811_init(){}
#endif
3 changes: 2 additions & 1 deletion kern/include/thumips.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ outw(uint32_t port, uint32_t data) {

#define TIMER0_IRQ 7

#define SL811 (0xbc020000)
/* Uncomment the following line to enable USB support */
// #define SL811 (0xbc020000)

#define CP0_TIMER_HZ 50000000

Expand Down

0 comments on commit 38e93ba

Please sign in to comment.