OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [peripheral/] [gpio.c] - Diff between revs 970 and 997

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 970 Rev 997
Line 78... Line 78...
    struct gpio_device *gpio = &(gpios[i]);
    struct gpio_device *gpio = &(gpios[i]);
 
 
    if ( gpio->baseaddr == 0 )
    if ( gpio->baseaddr == 0 )
      continue;
      continue;
 
 
    printf( "\nGPIO %u at 0x%08X:\n", i, gpio->baseaddr );
    PRINTF( "\nGPIO %u at 0x%08X:\n", i, gpio->baseaddr );
    printf( "RGPIO_IN     : 0x%08lX\n", gpio->curr.in );
    PRINTF( "RGPIO_IN     : 0x%08lX\n", gpio->curr.in );
    printf( "RGPIO_OUT    : 0x%08lX\n", gpio->curr.out );
    PRINTF( "RGPIO_OUT    : 0x%08lX\n", gpio->curr.out );
    printf( "RGPIO_OE     : 0x%08lX\n", gpio->curr.oe );
    PRINTF( "RGPIO_OE     : 0x%08lX\n", gpio->curr.oe );
    printf( "RGPIO_INTE   : 0x%08lX\n", gpio->curr.inte );
    PRINTF( "RGPIO_INTE   : 0x%08lX\n", gpio->curr.inte );
    printf( "RGPIO_PTRIG  : 0x%08lX\n", gpio->curr.ptrig );
    PRINTF( "RGPIO_PTRIG  : 0x%08lX\n", gpio->curr.ptrig );
    printf( "RGPIO_AUX    : 0x%08lX\n", gpio->curr.aux );
    PRINTF( "RGPIO_AUX    : 0x%08lX\n", gpio->curr.aux );
    printf( "RGPIO_CTRL   : 0x%08lX\n", gpio->curr.ctrl );
    PRINTF( "RGPIO_CTRL   : 0x%08lX\n", gpio->curr.ctrl );
    printf( "RGPIO_INTS   : 0x%08lX\n", gpio->curr.ints );
    PRINTF( "RGPIO_INTS   : 0x%08lX\n", gpio->curr.ints );
  }
  }
}
}
 
 
 
 
/* Convert a memory address to a device struct and relative address.
/* Convert a memory address to a device struct and relative address.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.