Ignore:
Timestamp:
Jul 12, 2017, 8:12:41 PM (7 years ago)
Author:
alain
Message:

Redefine the PIC device API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_mmc.c

    r23 r188  
    3535
    3636extern chdev_directory_t  chdev_dir;         // allocated in kernel_init.c
    37 
    38 extern chdev_icu_input_t  chdev_icu_input;   // allocated in kernel_init.c
    3937
    4038////////////////////////////////////
     
    5957    }
    6058
    61     // get MMC HWI IRQ index
    62     uint32_t hwi_id = chdev_icu_input.mmc;
    63 
    64     // enable HWI IRQ to CP0 in local ICU, and update  interrupt vector
    65     dev_icu_enable_irq( 0 , HWI_TYPE , hwi_id , chdev );
     59    // bind IRQ to CP0
     60    dev_pic_bind_irq( 0 , chdev );
    6661   
     62    // enable IRQ
     63    dev_pic_enable_irq( 0 , chdev );
     64
    6765}  // end dev_mmc_init()
    6866
Note: See TracChangeset for help on using the changeset viewer.