Changeset 2972e21 in mainline


Ignore:
Timestamp:
2010-12-31T15:44:54Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
28f660d
Parents:
bf5a3be
Message:

minor changes

change debug level names
use current dir as include dir

Location:
uspace/drv/uhci
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/Makefile

    rbf5a3be r2972e21  
    2929USPACE_PREFIX = ../..
    3030LIBS = $(LIBDRV_PREFIX)/libdrv.a $(LIBUSB_PREFIX)/libusb.a
    31 EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -I$(LIBUSB_PREFIX)/include
     31EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -I$(LIBUSB_PREFIX)/include -I.
    3232BINARY = uhci
    3333
     
    3535        iface.c \
    3636        main.c \
     37        root_hub/port.c \
    3738        root_hub/port_status.c \
    3839        root_hub/root_hub.c \
  • uspace/drv/uhci/debug.h

    rbf5a3be r2972e21  
    4141enum debug_levels {
    4242        DEBUG_LEVEL_FATAL_ERROR = 1,
    43         DEBUG_LEVEL_CRITICAL_ERROR = 2,
    44         DEBUG_LEVEL_ERROR = 3,
    45         DEBUG_LEVEL_WARNING = 4,
    46         DEBUG_LEVEL_INFO = 5
     43        DEBUG_LEVEL_ERROR = 2,
     44        DEBUG_LEVEL_WARNING = 3,
     45        DEBUG_LEVEL_INFO = 4,
     46        DEBUG_LEVEL_VERBOSE = 5,
     47        DEBUG_LEVEL_MAX = DEBUG_LEVEL_VERBOSE
    4748};
    4849
     
    5657        usb_dprintf( NAME, DEBUG_LEVEL_INFO, fmt, ##args )
    5758
     59#define uhci_print_verbose( fmt, args... ) \
     60        usb_dprintf( NAME, DEBUG_LEVEL_VERBOSE, fmt, ##args )
     61
    5862#endif
    5963/**
  • uspace/drv/uhci/main.c

    rbf5a3be r2972e21  
    6565         */
    6666        sleep( 5 );
    67         usb_dprintf_enable(NAME, DEBUG_LEVEL_INFO);
     67        usb_dprintf_enable(NAME, DEBUG_LEVEL_MAX);
    6868
    6969        return driver_main(&uhci_driver);
  • uspace/drv/uhci/uhci.h

    rbf5a3be r2972e21  
    5656        uhci_root_hub_t root_hub;
    5757        volatile regs_t* registers;
    58 
    5958} uhci_t ;
    6059
Note: See TracChangeset for help on using the changeset viewer.