Changeset 420


Ignore:
Timestamp:
Mar 23, 2009, 6:13:05 AM (16 years ago)
Author:
Paul Smedley
Message:

Disable output to comport if com = 0 (default) fix build probs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.0/lib32/debug.c

    r419 r420  
    4141extern int max_buf_size;
    4242
     43#ifdef DEBUG
     44short 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
     59short int MAGIC_COMM_PORT =  0x0;           // pulled from word ptr 40:0
     60#endif
     61
    4362char hextab[]="0123456789ABCDEF";
    4463
     
    566585       if (fLineTerminate)
    567586       {
    568            CharOut(CR);                              // append
    569            carriage return,
     587           CharOut(CR);                              // append carriage return,
    570588           CharOut(LF);                              // linefeed
    571589       }
     
    612630#endif
    613631
    614 #ifdef DEBUG
    615 short int MAGIC_COMM_PORT =  0x3f8;           // pulled from word ptr 40:0
    616 
    617 
    618 #define UART_DATA               0x00            // UART Data port
    619 #define UART_INT_ENAB           0x01            // UART Interrupt enable
    620 #define UART_INT_ID             0x02            // interrupt ID
    621 #define UART_LINE_CTRL          0x03            // line control registers
    622 #define UART_MODEM_CTRL         0x04            // modem control register
    623 #define UART_LINE_STAT          0x05            // line status register
    624 #define UART_MODEM_STAT         0x06            // modem status regiser
    625 #define UART_DIVISOR_LO         0x00            // divisor latch least sig
    626 #define UART_DIVISOR_HI         0x01h           // divisor latch most sig
    627 
    628 #define DELAY   nop
    629 #else
    630 short int MAGIC_COMM_PORT =  0x0;           // pulled from word ptr 40:0
    631 #endif
    632 
    633632#ifdef DEBUG                            //--------------------------- CharOut -
    634633void CharOut(char c)
Note: See TracChangeset for help on using the changeset viewer.