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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [peripheral/] [gpio.c] - Diff between revs 549 and 970

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

Rev 549 Rev 970
Line 55... Line 55...
    if ( gpio->baseaddr != 0 ) {
    if ( gpio->baseaddr != 0 ) {
      /* Get IRQ */
      /* Get IRQ */
      gpio->irq = config.gpios[i].irq;
      gpio->irq = config.gpios[i].irq;
 
 
      /* Register memory range */
      /* Register memory range */
      register_memoryarea( gpio->baseaddr, GPIO_ADDR_SPACE, 4, gpio_read32, gpio_write32 );
      register_memoryarea( gpio->baseaddr, GPIO_ADDR_SPACE, 4, 0, gpio_read32, gpio_write32 );
 
 
      /* Possibly connect to VAPI */
      /* Possibly connect to VAPI */
      if ( config.gpios[i].base_vapi_id ) {
      if ( config.gpios[i].base_vapi_id ) {
        gpio->base_vapi_id = config.gpios[i].base_vapi_id;
        gpio->base_vapi_id = config.gpios[i].base_vapi_id;
        vapi_install_multi_handler( gpio->base_vapi_id, GPIO_NUM_VAPI_IDS, gpio_vapi_read );
        vapi_install_multi_handler( gpio->base_vapi_id, GPIO_NUM_VAPI_IDS, gpio_vapi_read );

powered by: WebSVN 2.1.0

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