Changeset 562
- Timestamp:
- Jul 28, 2011, 11:21:19 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/lib32/debug.c
r561 r562 51 51 char hextab[]="0123456789ABCDEF"; 52 52 53 #ifdef DEBUG 54 //#define MAGIC_COMM_PORT 0x3f8 // pulled from word ptr 40:0 55 #define MAGIC_COMM_PORT 0x2f8 // pulled from word ptr 40:0 56 57 58 #define UART_DATA 0x00 // UART Data port 59 #define UART_INT_ENAB 0x01 // UART Interrupt enable 60 #define UART_INT_ID 0x02 // interrupt ID 61 #define UART_LINE_CTRL 0x03 // line control registers 62 #define UART_MODEM_CTRL 0x04 // modem control register 63 #define UART_LINE_STAT 0x05 // line status register 64 #define UART_MODEM_STAT 0x06 // modem status regiser 65 #define UART_DIVISOR_LO 0x00 // divisor latch least sig 66 #define UART_DIVISOR_HI 0x01h // divisor latch most sig 67 68 #define DELAY nop 69 #endif 70 53 71 #ifdef DEBUG //--------------------------- CharOut - 54 72 void CharOut(char c) … … 95 113 } 96 114 #endif 97 98 115 99 116 //-------------------- DecLongToASCII - … … 419 436 } 420 437 421 #ifdef DEBUG422 //#define MAGIC_COMM_PORT 0x3f8 // pulled from word ptr 40:0423 #define MAGIC_COMM_PORT 0x2f8 // pulled from word ptr 40:0424 425 426 #define UART_DATA 0x00 // UART Data port427 #define UART_INT_ENAB 0x01 // UART Interrupt enable428 #define UART_INT_ID 0x02 // interrupt ID429 #define UART_LINE_CTRL 0x03 // line control registers430 #define UART_MODEM_CTRL 0x04 // modem control register431 #define UART_LINE_STAT 0x05 // line status register432 #define UART_MODEM_STAT 0x06 // modem status regiser433 #define UART_DIVISOR_LO 0x00 // divisor latch least sig434 #define UART_DIVISOR_HI 0x01h // divisor latch most sig435 436 #define DELAY nop437 #endif438
Note:
See TracChangeset
for help on using the changeset viewer.