Revision 275
implementing transmission with queues
interrupts_func.c | ||
---|---|---|
5 | 5 |
#include "i8254.h" |
6 | 6 |
#include "keyboard.h" |
7 | 7 |
#include "mouse.h" |
8 |
#include "uart.h"
|
|
8 |
#include "nctp.h"
|
|
9 | 9 |
#include "utils.h" |
10 | 10 |
#include "errors.h" |
11 | 11 |
|
... | ... | |
106 | 106 |
uart_set_parity (COM1_ADDR, uart_parity_even); |
107 | 107 |
uart_set_bit_rate (COM1_ADDR, 38400); |
108 | 108 |
uart_enable_int_rx (COM1_ADDR); |
109 |
uart_disable_int_tx(COM1_ADDR);
|
|
109 |
uart_enable_int_tx(COM1_ADDR);
|
|
110 | 110 |
if(subscribe_uart_interrupt(COM1_IRQ, &uart_id)) { |
111 | 111 |
printf("%s: failed to subscribe UART interrupts.\n", __func__); |
112 | 112 |
return SBCR_ERROR; |
113 | 113 |
} |
114 | 114 |
uart_subscribed = 1; |
115 |
nctp_init(); |
|
115 | 116 |
|
116 | 117 |
return SUCCESS; |
117 | 118 |
} |
... | ... | |
168 | 169 |
uart_enable_int_tx(COM1_ADDR); |
169 | 170 |
uart_subscribed = 0; |
170 | 171 |
} |
172 |
nctp_free(); |
|
171 | 173 |
|
172 | 174 |
return r; |
173 | 175 |
} |
Also available in: Unified diff