Project

General

Profile

Revision 275

implementing transmission with queues

View differences:

proj.c
209 209
                                        buffer[buffer_pos] = '\0';
210 210
                                        printf("\nSending string -%s-", buffer);
211 211
                                        printf(" (output: %d)\n",
212
                                            hltp_send_string(COM1_ADDR, buffer));
212
                                            hltp_send_string(buffer));
213 213
                                        buffer_pos = 0;
214 214
                                    }
215 215
                                    else {
......
262 262
                            #endif
263 263
                            #ifdef DIOGO
264 264
                            case COM1_IRQ:
265
                                {
266
                                    printf("You've got mail");
267
                                    int r = hltp_get_string(COM1_ADDR, &s);
268
                                    printf(" (return code %d)", r);
269
                                    printf(": -%s-\n", s);
270
                                }break;
265
                                nctp_ih();
266
                                break;
271 267
                            #endif
272 268
                            }
273 269
                        }

Also available in: Unified diff