Changeset 420
- Timestamp:
- Mar 23, 2009, 6:13:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/lib32/debug.c
r419 r420 41 41 extern int max_buf_size; 42 42 43 #ifdef DEBUG 44 short int MAGIC_COMM_PORT = 0x3f8; // pulled from word ptr 40:0 45 46 47 #define UART_DATA 0x00 // UART Data port 48 #define UART_INT_ENAB 0x01 // UART Interrupt enable 49 #define UART_INT_ID 0x02 // interrupt ID 50 #define UART_LINE_CTRL 0x03 // line control registers 51 #define UART_MODEM_CTRL 0x04 // modem control register 52 #define UART_LINE_STAT 0x05 // line status register 53 #define UART_MODEM_STAT 0x06 // modem status regiser 54 #define UART_DIVISOR_LO 0x00 // divisor latch least sig 55 #define UART_DIVISOR_HI 0x01h // divisor latch most sig 56 57 #define DELAY nop 58 #else 59 short int MAGIC_COMM_PORT = 0x0; // pulled from word ptr 40:0 60 #endif 61 43 62 char hextab[]="0123456789ABCDEF"; 44 63 … … 566 585 if (fLineTerminate) 567 586 { 568 CharOut(CR); // append 569 carriage return, 587 CharOut(CR); // append carriage return, 570 588 CharOut(LF); // linefeed 571 589 } … … 612 630 #endif 613 631 614 #ifdef DEBUG615 short int MAGIC_COMM_PORT = 0x3f8; // pulled from word ptr 40:0616 617 618 #define UART_DATA 0x00 // UART Data port619 #define UART_INT_ENAB 0x01 // UART Interrupt enable620 #define UART_INT_ID 0x02 // interrupt ID621 #define UART_LINE_CTRL 0x03 // line control registers622 #define UART_MODEM_CTRL 0x04 // modem control register623 #define UART_LINE_STAT 0x05 // line status register624 #define UART_MODEM_STAT 0x06 // modem status regiser625 #define UART_DIVISOR_LO 0x00 // divisor latch least sig626 #define UART_DIVISOR_HI 0x01h // divisor latch most sig627 628 #define DELAY nop629 #else630 short int MAGIC_COMM_PORT = 0x0; // pulled from word ptr 40:0631 #endif632 633 632 #ifdef DEBUG //--------------------------- CharOut - 634 633 void CharOut(char c)
Note:
See TracChangeset
for help on using the changeset viewer.