Rev 2089 | Rev 3736 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2089 | Rev 3646 | ||
---|---|---|---|
Line 110... | Line 110... | ||
110 | */ |
110 | */ |
111 | return; |
111 | return; |
112 | } |
112 | } |
113 | #endif |
113 | #endif |
114 | 114 | ||
- | 115 | #ifdef CONFIG_NS16550 |
|
- | 116 | #ifdef CONFIG_NS16550_INTERRUPT_DRIVEN |
|
- | 117 | if (kbd_type == KBD_NS16550) { |
|
- | 118 | /* |
|
- | 119 | * The ns16550 driver is interrupt-driven. |
|
- | 120 | */ |
|
- | 121 | return; |
|
- | 122 | } |
|
- | 123 | #endif |
|
- | 124 | #endif |
|
115 | while (1) { |
125 | while (1) { |
116 | #ifdef CONFIG_NS16550 |
126 | #ifdef CONFIG_NS16550 |
- | 127 | #ifndef CONFIG_NS16550_INTERRUPT_DRIVEN |
|
117 | if (kbd_type == KBD_NS16550) |
128 | if (kbd_type == KBD_NS16550) |
118 | ns16550_poll(); |
129 | ns16550_poll(); |
119 | #endif |
130 | #endif |
- | 131 | #endif |
|
120 | thread_usleep(KEYBOARD_POLL_PAUSE); |
132 | thread_usleep(KEYBOARD_POLL_PAUSE); |
121 | } |
133 | } |
122 | } |
134 | } |
123 | 135 | ||
124 | /** Acquire console back for kernel |
136 | /** Acquire console back for kernel |